/* Compact cream-fade cards, shared by the initial shell and personalized plan. */
#daily-plan.daily-plan .daily-plan-card-footer {
    display: flex;
    justify-content: center;
    margin-top: 0;
}
#daily-plan.daily-plan .daily-plan-dots { min-height: 24px; margin-top: 0; }
#daily-plan.daily-plan .daily-plan-dot { height: 24px; }
#daily-plan.daily-plan .daily-plan-carousel { filter: none; }
#daily-plan.daily-plan .daily-plan-steps { align-items: center; }
#daily-plan.daily-plan .daily-plan-card {
    --plan-card-deep: #405139;
    --plan-card-accent: #a2b293;
    --plan-card-paper: #fcf8ee;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
    height: auto;
    padding: 8px 14px 10px;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #dedccc;
    border-radius: min(16px, var(--radius-limit, 14px));
    background: var(--plan-card-paper);
    box-shadow: 0 2px 5px #2938230a;
    mask-image: none;
}
#daily-plan.daily-plan .daily-plan-card.is-current { border-color: #a2b293; }
#daily-plan.daily-plan .daily-plan-card.is-complete { border-color: #b9c9ac; }
#daily-plan.daily-plan .daily-plan-card > .daily-plan-card-art {
    position: absolute;
    inset: 0 -4% 0 auto;
    z-index: -2;
    display: block;
    width: 76%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}
#daily-plan.daily-plan .daily-plan-card > .daily-plan-card-art img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    mix-blend-mode: normal;
}
#daily-plan.daily-plan .daily-plan-card.is-path > .daily-plan-card-art {
    right: 8px;
}
#daily-plan.daily-plan .daily-plan-card.is-path > .daily-plan-card-art img {
    object-fit: contain;
    object-position: right center;
}
#daily-plan.daily-plan .daily-plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--plan-card-paper) 10%, #fcf8eef5 30%, #fcf8eed6 49%, #fcf8ee26 85%), linear-gradient(0deg, var(--plan-card-paper), #fcf8ee00 58%);
    pointer-events: none;
}
#daily-plan.daily-plan .daily-plan-card > .daily-plan-card-copy {
    display: block;
    width: 90%;
    max-width: 300px;
    color: #292c23;
}
#daily-plan.daily-plan .daily-plan-card-copy > small { font-size: 10px; line-height: 1.3; }
#daily-plan.daily-plan .daily-plan-card-copy > strong { margin-top: 3px; font-size: 18px; line-height: 1.14; }
#daily-plan.daily-plan .daily-plan-card-copy > p { margin-top: 3px; color: #5c6253; font-size: 11px; line-height: 1.35; }
#daily-plan.daily-plan .daily-plan-punches { margin-top: 4px; }
#daily-plan.daily-plan .daily-plan-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    align-self: auto;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    border: 0;
}
#daily-plan.daily-plan .daily-plan-card-duration {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}
#daily-plan.daily-plan .daily-plan-card-skip {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: auto;
    max-width: none;
    min-height: 36px;
    padding: 8px 5px;
    color: #58634e;
    font-size: 11px;
    line-height: 1.2;
}
#daily-plan.daily-plan .daily-plan-card-skip::after { content: none; }
#daily-plan.daily-plan .daily-plan-card-action {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-color: #27341f;
    border-radius: 8px;
    background: linear-gradient(#46503c, #2c3623);
    box-shadow: 0 3px 0 #1c2615;
    color: #fffcef;
    font-size: 14px;
    line-height: 1.2;
}
#daily-plan.daily-plan .daily-plan-card-action:hover,
#daily-plan.daily-plan .daily-plan-card-action:focus-visible { background: #435538; outline-color: #81956d; }
#daily-plan.daily-plan .daily-plan-card-manual { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
#daily-plan.daily-plan .daily-plan-card-done { grid-column: 2; grid-row: 1; margin: 0; text-align: center; }
body.view-progress #daily-plan.daily-plan .daily-plan-card-actions { grid-template-columns: auto auto minmax(0, 1fr); }
body.view-progress #daily-plan.daily-plan .daily-plan-card-action { white-space: normal; text-align: center; }
@media (max-width: 340px) {
    #daily-plan.daily-plan .daily-plan-card { padding-inline: 12px; }
}
@media (pointer: coarse) {
    #daily-plan.daily-plan .daily-plan-card-skip,
    #daily-plan.daily-plan .daily-plan-card-action { min-height: 44px; }
}
@media (min-width: 1024px) {
    #daily-plan.daily-plan .daily-plan-card { padding: 6px 14px 8px; gap: 4px; }
}
/* Keep descriptive actions clear of Skip in the narrow tablet carousel. */
@media (min-width: 761px) and (max-width: 1023px) {
    #daily-plan.daily-plan .daily-plan-card { flex-basis: calc((100% - 10px) / 1.5); }
    #daily-plan.daily-plan .daily-plan-card-action { padding-inline: 6px; }
}
