.global-market-page {
    width: min(1680px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 48px;
    color: #edf5f8;
}

.global-market-hero,
.global-market-section > header,
.global-market-chart > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.global-market-hero { margin-bottom: 16px; }
.global-market-hero h1 { margin: 4px 0 6px; font-size: clamp(30px, 3vw, 46px); }
.global-market-hero p:last-child { margin: 0; color: #91a4ad; }

.global-market-freshness {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    min-width: 230px;
    padding: 10px 14px;
    border: 1px solid #304047;
    background: #11191d;
}
.global-market-freshness time { grid-column: 2; color: #8ba0aa; font-size: 13px; }
.global-market-live-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #4ed8c4; box-shadow: 0 0 0 5px rgba(78,216,196,.12); }

.global-market-jump { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.global-market-jump button {
    min-width: 92px; padding: 8px 12px; border: 1px solid #304047; background: #11191d;
    color: #d9e4e8; cursor: pointer; white-space: nowrap;
}
.global-market-jump button:hover { border-color: #4ed8c4; color: #69e2cf; }

.global-market-section { padding: 16px; margin-top: 10px; border: 1px solid #27363d; background: #0c1418; }
.global-market-section > header { align-items: center; margin-bottom: 10px; }
.global-market-section h2, .global-market-chart h2 { margin: 2px 0 0; font-size: 21px; }
.global-market-section > header > span, .global-market-chart > header > span { color: #8499a3; font-size: 13px; text-align: right; }

.global-market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.global-market-grid-fx, .global-market-grid-resource { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.global-market-card {
    min-width: 0; min-height: 96px; padding: 11px 12px; border: 1px solid #293940; background: #111a1f;
    color: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.global-market-card:hover, .global-market-card:focus-visible { border-color: #4ed8c4; background: #142229; transform: translateY(-1px); outline: none; }
.global-market-card.is-selected { border-color: #4ed8c4; box-shadow: inset 3px 0 #4ed8c4; }
.global-market-card.is-unavailable { opacity: .62; }
.global-market-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.global-market-card-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-market-card-head small { color: #79909a; white-space: nowrap; }
.global-market-card-value { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.global-market-card-value b { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-market-card-value span { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.global-market-card-value .is-up { color: #ff5b62; }
.global-market-card-value .is-down { color: #3e91ff; }
.global-market-card-value .is-flat { color: #9badb5; }
.global-market-card footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: #768b94; font-size: 11px; }

.global-market-chart { margin-top: 12px; padding: 16px; border: 1px solid #2e4b4d; background: #0b1216; scroll-margin-top: 90px; }
.global-market-chart > header { align-items: center; margin-bottom: 10px; }
.global-market-chart iframe { display: block; width: 100%; height: 760px; border: 1px solid #263940; background: #090f12; }

@media (max-width: 1180px) {
    .global-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .global-market-grid-fx, .global-market-grid-resource { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .global-market-page { width: min(100% - 24px, 1680px); padding: 20px 0 40px; }
    .global-market-hero { display: grid; align-items: start; }
    .global-market-freshness { min-width: 0; width: 100%; box-sizing: border-box; }
    .global-market-section, .global-market-chart { padding: 12px; }
    .global-market-section > header, .global-market-chart > header { align-items: flex-start; }
    .global-market-section > header > span, .global-market-chart > header > span { max-width: 48%; }
    .global-market-grid, .global-market-grid-fx, .global-market-grid-resource { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .global-market-card { min-height: 94px; padding: 10px; }
    .global-market-card-value { display: grid; }
    .global-market-card-value b { font-size: 19px; }
    .global-market-card-value span { font-size: 18px; }
    .global-market-chart iframe { height: 900px; }
}

@media (max-width: 430px) {
    .global-market-grid, .global-market-grid-fx, .global-market-grid-resource { grid-template-columns: 1fr; }
    .global-market-section > header, .global-market-chart > header { display: grid; }
    .global-market-section > header > span, .global-market-chart > header > span { max-width: none; text-align: left; }
}
