* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
                 "Malgun Gothic", sans-serif;
    background: #0f1115;
    color: #e6e6e6;
    line-height: 1.5;
}
header {
    padding: 20px 24px;
    background: #161922;
    border-bottom: 1px solid #232838;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
header h1 { margin: 0; font-size: 20px; font-weight: 600; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #232838;
    color: #cbd1de;
}
.badge.live { background: #4a1320; color: #ff7b8e; }
.badge.dry { background: #3a3210; color: #ffd64a; }
.badge.paused { background: #3a2a10; color: #ffac4a; }
.badge.running { background: #103a1a; color: #4ade80; }
.badge.muted { background: #1c2030; color: #8a93a8; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 20px 24px;
}
.card {
    background: #161922;
    border: 1px solid #232838;
    border-radius: 8px;
    padding: 16px;
}
.card-label { font-size: 12px; color: #8a93a8; text-transform: uppercase; letter-spacing: 0.5px; }
.card-value { font-size: 28px; font-weight: 600; margin-top: 6px; }
.card-value.small { font-size: 14px; font-weight: 500; }
.card-sub { font-size: 12px; color: #8a93a8; margin-top: 6px; }

section {
    padding: 0 24px 24px;
}
section h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a93a8;
    border-bottom: 1px solid #232838;
    padding-bottom: 8px;
    margin: 24px 0 12px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #161922;
    border: 1px solid #232838;
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
}
th, td {
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid #1f2433;
}
th {
    background: #1c2030;
    color: #8a93a8;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-align: right;
}
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #1a1e2a; }

.pos { color: #4ade80; font-weight: 500; }
.neg { color: #f87171; font-weight: 500; }
.muted { color: #8a93a8; }
.ticker { font-family: ui-monospace, monospace; }
.buy { color: #4ade80; font-weight: 600; }
.sell { color: #f87171; font-weight: 600; }
.tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.tag.dry { background: #3a3210; color: #ffd64a; }
.tag.live { background: #4a1320; color: #ff7b8e; }

.empty {
    background: #161922;
    border: 1px dashed #232838;
    color: #8a93a8;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
}

footer {
    padding: 24px;
    border-top: 1px solid #232838;
    color: #8a93a8;
    font-size: 12px;
    text-align: center;
}
footer code {
    background: #1c2030;
    padding: 2px 6px;
    border-radius: 3px;
    color: #cbd1de;
}
footer a { color: #6ea8fe; text-decoration: none; }
footer a:hover { text-decoration: underline; }
