/* Fresh path to bypass stale edge caches for the utility page polish pass. */
body.ms-v2 .ms-v2-legacy-hero {
    display: grid;
    gap: 12px;
    width: min(1220px, 100%);
    margin: 0 auto 24px;
}

body.ms-v2 .ms-v2-legacy-hero .ms-v2-eyebrow {
    margin: 0;
    color: var(--ms-accent);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: lowercase;
}

body.ms-v2 .ms-v2-legacy-hero h1 {
    max-width: 940px;
    margin: 0;
    color: var(--ms-ink);
    font-family: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: 0;
}

body.ms-v2 .ms-v2-legacy-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--ms-ink-2);
    font-size: 17px;
    line-height: 1.6;
}

body.ms-v2 .ms-v2-legacy-page {
    width: min(1320px, 100%);
    margin: 0 auto 76px;
    color: var(--ms-ink-2);
}

body.ms-v2 .ms-v2-legacy-page.container,
body.ms-v2 .ms-v2-legacy-page.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

body.ms-v2 .ms-v2-legacy-page.row {
    margin-left: auto;
    margin-right: auto;
}

body.ms-v2 .ms-v2-legacy-page > [class*="col-"],
body.ms-v2 .ms-v2-legacy-panel,
body.ms-v2 .ms-v2-legacy-table-panel {
    float: none;
}

body.ms-v2 .ms-v2-legacy-panel,
body.ms-v2 .ms-v2-legacy-table-panel,
body.ms-v2 .ms-v2-legacy-card {
    padding: 22px;
    background: var(--ms-surface);
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    box-shadow: var(--ms-shadow);
}

body.ms-v2 .ms-v2-legacy-table-panel {
    overflow-x: auto;
}

body.ms-v2 .ms-v2-legacy-scroll {
    width: 100%;
    overflow-x: auto;
}

body.ms-v2 .ms-v2-legacy-page h1,
body.ms-v2 .ms-v2-legacy-page h2,
body.ms-v2 .ms-v2-legacy-page h3,
body.ms-v2 .ms-v2-legacy-page h4,
body.ms-v2 .ms-v2-legacy-page h5 {
    color: var(--ms-ink);
    font-family: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif;
    letter-spacing: 0;
}

body.ms-v2 .ms-v2-legacy-page h4,
body.ms-v2 .ms-v2-legacy-page h5 {
    line-height: 1.45;
}

body.ms-v2 .ms-v2-legacy-page p {
    color: var(--ms-ink-2);
    line-height: 1.6;
}

body.ms-v2 .ms-v2-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

body.ms-v2 .ms-v2-inline-meta span,
body.ms-v2 .ms-v2-legacy-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--ms-ink-2);
    background: var(--ms-bg-2);
    border: 1px solid var(--ms-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
}

body.ms-v2 .ms-v2-legacy-table {
    min-width: 760px;
    width: 100% !important;
    margin: 0 !important;
    color: var(--ms-ink-2);
    background: var(--ms-bg-2) !important;
    border-color: var(--ms-line) !important;
}

body.ms-v2 .ms-v2-legacy-table th,
body.ms-v2 .ms-v2-legacy-table td {
    border-color: var(--ms-line) !important;
    vertical-align: middle;
}

body.ms-v2 .ms-v2-legacy-table th {
    color: var(--ms-ink-3);
    background: var(--ms-surface-2);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
    text-transform: uppercase;
}

body.ms-v2 .ms-v2-legacy-table tfoot {
    display: none;
}

body.ms-v2 .ms-v2-legacy-table tbody tr,
body.ms-v2 .ms-v2-legacy-table tbody tr[style] {
    background: var(--ms-bg-2) !important;
}

body.ms-v2 .ms-v2-legacy-table tbody tr:hover,
body.ms-v2 .ms-v2-legacy-table tbody tr[style]:hover {
    background: var(--ms-hover) !important;
}

body.ms-v2 .ms-v2-legacy-table img.iconSized {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 6px;
}

body.ms-v2 .ms-v2-profit-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 18px;
}

body.ms-v2 .ms-v2-profit-page > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.ms-v2 .ms-v2-fashion-page {
    display: grid;
    gap: 18px;
}

body.ms-v2 .ms-v2-fashion-page > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.ms-v2 .ms-v2-fashion-page #FashionTable {
    min-width: 920px;
}

body.ms-v2 .ms-v2-fashion-page #FashionTableDyes {
    min-width: 680px;
}

body.ms-v2 .ms-v2-player-page .row {
    margin-left: 0;
    margin-right: 0;
}

body.ms-v2 .ms-v2-player-page .col-lg-8 {
    width: 100%;
    max-width: 980px;
    padding-left: 0;
    padding-right: 0;
}

body.ms-v2 .ms-v2-not-marketable-page {
    display: grid;
    gap: 18px;
}

body.ms-v2 .ms-v2-item-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

body.ms-v2 .ms-v2-item-notice img.mediumIcon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
}

body.ms-v2 .ms-v2-eureka-page {
    display: block;
}

body.ms-v2 .ms-v2-eureka-page > .col-lg-1 {
    display: none;
}

body.ms-v2 .ms-v2-eureka-page > .col-lg-10 {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.ms-v2 .ms-v2-eureka-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    margin: 10px 0 16px;
    padding: 0 12px;
    color: var(--ms-accent);
    background: var(--ms-bg-2);
    border: 1px solid var(--ms-line);
    border-radius: 6px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-weight: 800;
}

body.ms-v2 .ms-v2-empty-state {
    display: grid;
    gap: 8px;
}

body.ms-v2 .ms-v2-empty-state h4,
body.ms-v2 .ms-v2-empty-state p {
    margin: 0;
}

body.ms-v2 .ms-v2-eureka-page form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body.ms-v2 .ms-v2-eureka-page input[type="time"] {
    min-height: 32px;
    color: var(--ms-ink);
    background: var(--ms-bg);
    border: 1px solid var(--ms-line);
    border-radius: 6px;
}

@media (max-width: 700px) {
    body.ms-v2 .ms-v2-legacy-hero h1 {
        font-size: 42px;
    }

    body.ms-v2 .ms-v2-legacy-hero p {
        font-size: 15px;
    }

    body.ms-v2 .ms-v2-legacy-panel,
    body.ms-v2 .ms-v2-legacy-table-panel,
    body.ms-v2 .ms-v2-legacy-card {
        padding: 18px;
    }

    body.ms-v2 .ms-v2-item-notice {
        grid-template-columns: 1fr;
    }
}
