:root {
    color-scheme: light;
    --home-canvas: #f2f2f1;
    --home-ink: #252525;
    --home-muted: #747474;
    --home-line: #303030;
    --home-accent: #f126dc;
    font-family: var(--perfect-picker-font-family);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--home-ink);
    background: var(--home-canvas);
}

.homeMain {
    width: min(1540px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.homeIntro {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.homeEyebrow {
    margin: 0 0 4px;
    color: var(--home-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.homeIntro h1 {
    margin: 0;
    font-size: 28px;
}

.homeIntro p:last-child {
    margin: 5px 0 0;
    color: var(--home-muted);
    font-size: 13px;
}

.draftBadge {
    padding: 6px 10px;
    color: #5c5c5c;
    background: #fff;
    border: 1px solid #ccc;
    font-size: 12px;
}

.homePanel {
    background: #fff;
    border: 2px solid var(--home-line);
    box-shadow: 5px 5px 0 rgba(36, 36, 36, 0.15);
}

.marketJudgement {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1fr) minmax(260px, 1fr);
    min-height: 124px;
    align-items: center;
    gap: 34px;
    padding: 22px 28px;
}

.sectionNumber {
    color: var(--home-accent);
    font-size: 17px;
    font-weight: 700;
}

.panelLabel {
    display: inline;
    margin: 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.marketJudgement h2 {
    display: inline;
    margin: 0;
    font-size: 24px;
}

.scaleBars,
.scaleLabels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.scaleBars span {
    height: 18px;
    background: #ddd;
}

.scaleBars span:nth-child(2) {
    background: #ffd21a;
    outline: 2px solid #292929;
}

.scaleLabels {
    margin-top: 8px;
    color: #969696;
    font-size: 11px;
    text-align: center;
}

.placeholderCopy,
.dashboardPanel p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.8;
}

.placeholderCopy {
    padding-left: 22px;
    border-left: 4px solid var(--home-accent);
}

.dashboardGrid {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

.dashboardGridPrimary {
    grid-template-columns: 1.45fr 0.95fr 0.95fr;
}

.dashboardPanel {
    min-height: 360px;
    padding: 22px 24px;
}

.dashboardPanel header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--home-line);
}

.dashboardPanel h2,
.metricPlaceholder h2 {
    margin: 0;
    font-size: 20px;
}

.chartPlaceholder {
    position: relative;
    height: 190px;
    margin: 24px 0 20px;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 45px, #ececec 46px);
    overflow: hidden;
}

.chartPlaceholder span {
    position: absolute;
    right: 4%;
    bottom: 28%;
    left: 4%;
    height: 45%;
    border-top: 3px solid #aaa;
    transform: skewY(-5deg);
}

.gaugePlaceholder {
    width: 160px;
    height: 80px;
    margin: 52px auto 70px;
    background: conic-gradient(from 270deg at 50% 100%, var(--home-accent) 0 20%, #e6e6e6 20% 50%, transparent 50% 100%);
    border-radius: 160px 160px 0 0;
}

.listPlaceholder {
    display: grid;
    gap: 0;
    margin: 18px 0 20px;
}

.listPlaceholder span {
    height: 52px;
    border-bottom: 1px dashed #ccc;
}

.dashboardGridSecondary {
    grid-template-columns: repeat(3, 1fr);
}

.metricPlaceholder {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
}

.metricPlaceholder span {
    color: #999;
    font-size: 12px;
}

@media (max-width: 1020px) {
    .marketJudgement {
        grid-template-columns: 1fr 1fr;
    }

    .placeholderCopy {
        grid-column: 1 / -1;
    }

    .dashboardGridPrimary {
        grid-template-columns: 1fr 1fr;
    }

    .dashboardGridPrimary .dashboardPanel:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .homeMain {
        width: min(100% - 20px, 1540px);
        padding-top: 18px;
    }

    .homeIntro {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 18px 2px;
    }

    .marketJudgement,
    .dashboardGridPrimary,
    .dashboardGridSecondary {
        grid-template-columns: 1fr;
    }

    .marketJudgement {
        gap: 24px;
        padding: 22px 18px;
    }

    .placeholderCopy,
    .dashboardGridPrimary .dashboardPanel:first-child {
        grid-column: auto;
    }

    .dashboardPanel {
        min-height: 310px;
        padding: 18px;
    }
}
