/*
    EPIC 60 WP8 - email set-up (screen 6), create a child (screen 3b), Played today setting, reissue.
    Uses the parent shell tokens from home.css (forest green, gold accent, light body, white hairline cards).
*/

.hm-email,
.hm-create {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hm-card {
    background: var(--home-card, #FFFFFF);
    border: 1px solid var(--home-hairline, #E3E6E0);
    border-radius: var(--home-radius, 12px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-card p {
    margin: 0;
}

.hm-card--dark {
    background: var(--home-header-from, #1E3B34);
    border-color: var(--home-header-from, #1E3B34);
    color: #E8F0EC;
}

.hm-card--stop {
    border-color: #F2C14E;
}

.hm-eyebrow {
    margin: 0;
    font-family: var(--home-font-display, 'Fredoka', sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-header-to, #2A5547);
}

.hm-eyebrow--gold {
    color: #F2C14E;
}

.hm-promise-foot {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 10px;
}

.hm-days {
    display: flex;
    gap: 6px;
}

.hm-day {
    flex: 1;
    min-height: 44px;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid var(--home-hairline, #E3E6E0);
    background: #FFFFFF;
    color: var(--home-text, #1C2421);
    font-family: var(--home-font-display, 'Fredoka', sans-serif);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.hm-day.is-on {
    background: var(--home-header-from, #1E3B34);
    border-color: var(--home-header-from, #1E3B34);
    color: #FFFFFF;
    box-shadow: inset 0 -3px 0 #F2C14E;
}

.hm-day:focus-visible,
.hm-pill:focus-visible,
.hm-swatch:focus-visible {
    outline: 3px solid #F2C14E;
    outline-offset: 2px;
}

.hm-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hm-field input,
.hm-field select {
    min-height: 44px;
    border: 1px solid var(--home-hairline, #E3E6E0);
    border-radius: 12px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 400;
    background: #FFFFFF;
    color: var(--home-text, #1C2421);
    box-sizing: border-box;
    width: 100%;
}

.hm-link {
    color: var(--home-header-from, #1E3B34);
    font-weight: 600;
}

.hm-finish {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-pills {
    display: flex;
    gap: 8px;
}

.hm-pill {
    flex: 1;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--home-hairline, #E3E6E0);
    background: #FFFFFF;
    font-family: var(--home-font-display, 'Fredoka', sans-serif);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
}

.hm-pill.is-on {
    background: var(--home-header-from, #1E3B34);
    border-color: var(--home-header-from, #1E3B34);
    color: #FFFFFF;
}

.hm-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hm-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 0 1px var(--home-hairline, #E3E6E0);
    cursor: pointer;
}

.hm-swatch.is-on {
    box-shadow: 0 0 0 3px var(--home-header-from, #1E3B34);
}

.hm-credentials {
    background: var(--home-header-from, #1E3B34);
    color: #FFFFFF;
    border-radius: var(--home-radius, 12px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-credentials p {
    margin: 0;
}

.hm-cred {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hm-cred__label {
    font-size: 0.78rem;
    color: #CFE0D8;
}

.hm-cred__value {
    font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: #F2C14E;
    word-break: break-all;
}

.hm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hm-choice {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 640px) {
    .hm-fields {
        grid-template-columns: 1fr;
    }

    .hm-days {
        gap: 4px;
    }

    .hm-day {
        font-size: 0.8rem;
    }
}

@media print {
    .home-header,
    .hm-no-print {
        display: none !important;
    }

    .hm-credentials {
        background: #FFFFFF;
        color: #000000;
        border: 2px solid #000000;
    }

    .hm-cred__value,
    .hm-cred__label {
        color: #000000;
    }
}
