:root {
    --bg: #0b1220;
    --card: #1e293b;
    --item: #334155;
    --panel: #0f172a;
    --text: #ffffff;
    --muted: #94a3b8;
    --james: #38bdf8;
    --jessica: #f472b6;
    --accent: #22c55e;
    --danger: #ef4444;
    --shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 16px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.appHeader {
    max-width: 760px;
    margin: 0 auto;
}

h1 {
    margin: 0 0 5px;
    font-size: 36px;
    line-height: 1.1;
}

.james {
    color: var(--james);
}

.jessica {
    color: var(--jessica);
}

.sub,
footer,
.muted {
    color: var(--muted);
}

.sub {
    margin-bottom: 20px;
}

.buttonBar,
main,
footer {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.buttonBar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--item);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

button.active {
    background: var(--james);
    color: #00111f;
}

.card,
details {
    background: var(--card);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.person {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
}

.item {
    background: var(--item);
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    line-height: 1.45;
}

.itemHeader {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

small {
    display: block;
    margin-top: 6px;
    margin-left: 18px;
    color: var(--muted);
    line-height: 1.5;
}

summary {
    cursor: pointer;
    user-select: none;
    font-size: 22px;
    font-weight: 700;
}

.reconTitle {
    color: var(--james);
    font-size: 20px;
    font-weight: 700;
}

.mix {
    margin-top: 8px;
    color: #cbd5e1;
}

.dose {
    margin-top: 10px;
    padding: 10px;
    background: var(--panel);
    border-radius: 8px;
    white-space: pre-line;
}

.empty {
    color: var(--muted);
    font-style: italic;
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    font-size: 12px;
    margin-top: 28px;
    margin-bottom: 10px;
}

.version {
    margin-top: 4px;
}

@media (max-width: 600px) {
    body {
        padding: 14px;
    }

    h1 {
        font-size: 32px;
    }

    .buttonBar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    button {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}
