/* AtlasMarketWatch — Market Box (v1.6.0) */

.amw-mb{
    background: #ffffff;
    border: 1px solid #b5b7bf;
    color: #1f2024;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Head */
.amw-mb-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f2f2f2;
}
.amw-mb-eyebrow{
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    color: #5e5e69;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.amw-mb-live{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    color: #166534;
    letter-spacing: 0.12em;
}
.amw-mb-dot{
    width: 7px;
    height: 7px;
    background: #166534;
    display: inline-block;
    flex-shrink: 0;
}

/* Tabs */
.amw-mb-tabs{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f2f2f2;
    border-bottom: 1px solid #b5b7bf;
}
.amw-mb-tab{
    background: transparent;
    border: 0;
    padding: 10px 8px;
    font-family: system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5e5e69;
    cursor: pointer;
    border-right: 1px solid #b5b7bf;
}
.amw-mb-tab:last-child{ border-right: 0; }
.amw-mb-tab.is-active{
    background: #1a3a5c;
    color: #ffffff;
}

/* Panel */
.amw-mb-panel{ display: none; padding: 4px 0; }
.amw-mb-panel.is-active{ display: block; }

/* Column header */
.amw-mb-colhead{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px 12px 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #b5b7bf;
}
.amw-mb-colhead > span{
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 8.5px;
    font-weight: 700;
    color: #5e5e69;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
}
.amw-mb-colhead-sym  { text-align: left; }
.amw-mb-colhead-chg  { text-align: center; }
.amw-mb-colhead-price{ text-align: right; }

/* Data row */
.amw-mb-row{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: baseline;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f2f2f2;
    padding: 8px 12px;
    font-family: system-ui, sans-serif;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease;
}
.amw-mb-row:last-child{ border-bottom: 0; }
.amw-mb-row:hover{ background: #f7f8fa; }

.amw-mb-sym{
    font-weight: 700;
    color: #1a3a5c;
    letter-spacing: 0.02em;
    font-size: 13.5px;
    white-space: nowrap;
}
.amw-mb-chg{
    font-weight: 600;
    font-size: 12.5px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.amw-mb-chg.is-up  { color: #166534; }
.amw-mb-chg.is-down{ color: #991b1b; }
.amw-mb-price{
    font-weight: 500;
    color: #1f2024;
    text-align: right;
    white-space: nowrap;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}
