/* Daily Picks is a local IndianMarriage interior; SHARED_DASHBOARD owns its shell. */
:root {
    --text-primary: var(--color-text-primary, #1f2937);
    --text-secondary: var(--color-text-secondary, #6b7280);
    --border-color: var(--color-border, #e5e7eb);
}

.dp-skip-link {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    z-index: 60;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md, 0.375rem);
    background: var(--color-bg-primary, #fff);
    color: var(--text-primary, #1f2937);
}

.dp-eyebrow {
    color: var(--love-pink-700, #be185d);
    line-height: 1.3;
}

.dp-hero {
    border-color: var(--border-color, #e5e7eb);
    background: var(--color-bg-primary, #fff);
}

.dp-hero::before {
    content: "";
    position: absolute;
    width: 16rem;
    height: 16rem;
    top: -9rem;
    right: -4rem;
    border-radius: var(--radius-full, 9999rem);
    background: color-mix(in srgb, var(--love-pink, #ec4899) 18%, transparent);
    pointer-events: none;
}

.dp-hero__copy,
.dp-refresh {
    position: relative;
    z-index: 1;
}

.dp-hero h1 {
    color: var(--text-primary, #1f2937);
}

.dp-hero__intro {
    color: var(--text-secondary, #6b7280);
}

.dp-refresh {
    border-color: color-mix(in srgb, var(--marriage-gold, #d4af37) 45%, var(--border-color, #e5e7eb));
    background: color-mix(in srgb, var(--marriage-gold, #d4af37) 10%, var(--color-bg-primary, #fff));
}

.dp-refresh__icon,
.dp-guide__icon,
.dp-dialog__icon {
    background: color-mix(in srgb, var(--marriage-gold, #d4af37) 18%, var(--color-bg-primary, #fff));
    color: var(--marriage-gold-700, #b8860b);
}

.dp-refresh__label {
    color: var(--text-secondary, #6b7280);
}

.dp-refresh__time {
    color: var(--text-primary, #1f2937);
}

.dp-refresh__countdown {
    color: var(--love-pink-700, #be185d);
    font-variant-numeric: tabular-nums;
}

.dp-refresh__button {
    border-color: transparent;
    background: var(--love-pink, #ec4899);
    color: #fff;
    cursor: pointer;
}

.dp-summary {
    border-color: var(--border-color, #e5e7eb);
    background: var(--color-bg-primary, #fff);
}

.dp-summary[hidden] {
    display: none;
}

.dp-summary__label {
    color: var(--text-secondary, #6b7280);
}

.dp-summary__value {
    color: var(--text-primary, #1f2937);
}

.dp-progress {
    width: 100%;
    height: 0.625rem;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-full, 9999rem);
    background: var(--color-bg-secondary, #f1f5f9);
}

.dp-progress::-webkit-progress-bar {
    background: var(--color-bg-secondary, #f1f5f9);
}

.dp-progress::-webkit-progress-value,
.dp-progress::-moz-progress-bar {
    border-radius: var(--radius-full, 9999rem);
    background: linear-gradient(90deg, var(--love-pink, #ec4899), var(--marriage-gold, #d4af37));
}

.dp-text-link {
    color: var(--love-pink-700, #be185d);
    text-decoration: none;
}

.dp-text-link:hover {
    text-decoration: underline;
}

.dp-results h2,
.dp-guide h2,
.dp-dialog h2 {
    color: var(--text-primary, #1f2937);
    line-height: 1.25;
}

.dp-results__hint {
    color: var(--text-secondary, #6b7280);
}

.dp-card-reason {
    background: color-mix(in srgb, var(--love-pink, #ec4899) 8%, var(--color-bg-primary, #fff));
}

.dp-card-reason__label {
    color: var(--love-pink-700, #be185d);
}

.dp-card-reason__text {
    color: var(--text-primary, #1f2937);
}

/* The shared card's compact default is useful in dense lists; Daily Picks is
   a decision surface, so its local actions use the fleet minimum touch size. */
.dp-grid .mx-btn {
    min-height: 2.75rem;
}

.dp-state {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg, 1.5rem);
    align-items: center;
    min-height: 24rem;
    overflow: hidden;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 0.0625rem solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-2xl, 1rem);
    background: var(--color-bg-primary, #fff);
}

.dp-state__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 18rem);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: var(--radius-full, 9999rem);
    background: color-mix(in srgb, var(--love-pink, #ec4899) 10%, var(--color-bg-primary, #fff));
}

.dp-state__visual::before,
.dp-state__visual::after {
    content: "";
    position: absolute;
    border-radius: var(--radius-full, 9999rem);
    border: 0.0625rem solid color-mix(in srgb, var(--marriage-gold, #d4af37) 35%, transparent);
}

.dp-state__visual::before {
    inset: 1.5rem;
}

.dp-state__visual::after {
    inset: 3.25rem;
}

.dp-state__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-2xl, 1rem);
    background: linear-gradient(135deg, var(--love-pink, #ec4899), var(--marriage-gold, #d4af37));
    color: #fff;
    font-size: 2rem;
    box-shadow: var(--shadow-4, 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1));
}

.dp-state--error .dp-state__icon {
    background: var(--color-error, #dc2626);
}

.dp-state__content {
    max-width: 38rem;
}

.dp-state__content h2 {
    margin: 0;
    color: var(--text-primary, #1f2937);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.1;
}

.dp-state__content > p:not(.dp-eyebrow) {
    margin: 0.875rem 0 0;
    color: var(--text-secondary, #6b7280);
    line-height: 1.7;
}

.dp-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.dp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 0.0625rem solid transparent;
    border-radius: var(--radius-lg, 0.5rem);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 750;
    text-decoration: none;
}

.dp-button--primary {
    border-color: var(--love-pink, #ec4899);
    background: var(--love-pink, #ec4899);
    color: #fff;
}

.dp-button--primary:hover,
.dp-refresh__button:hover {
    background: var(--love-pink-700, #be185d);
}

.dp-button--ghost {
    border-color: var(--border-color, #e5e7eb);
    background: var(--color-bg-primary, #fff);
    color: var(--text-primary, #1f2937);
}

.dp-button--ghost:hover {
    background: var(--color-bg-secondary, #f3f4f6);
}

.dp-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.dp-guide {
    border-color: var(--border-color, #e5e7eb);
}

.dp-guide__item strong {
    color: var(--text-primary, #1f2937);
}

.dp-guide__item small {
    color: var(--text-secondary, #6b7280);
}

.dp-dialog {
    width: min(34rem, calc(100% - 2rem));
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
    border: 0.0625rem solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-2xl, 1rem);
    background: var(--color-bg-primary, #fff);
    color: var(--text-primary, #1f2937);
    box-shadow: var(--shadow-5, 0 1.5625rem 3.125rem -0.75rem rgba(0, 0, 0, 0.25));
}

.dp-dialog::backdrop {
    background: rgba(15, 23, 42, 0.7);
}

.dp-dialog__form {
    display: flex;
    max-height: 85vh;
    flex-direction: column;
}

.dp-dialog__header,
.dp-dialog__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-primary, #fff);
}

.dp-dialog__header {
    border-bottom: 0.0625rem solid var(--border-color, #e5e7eb);
}

.dp-dialog__header > div:nth-child(2) {
    flex: 1 1 auto;
}

.dp-dialog__footer {
    justify-content: flex-end;
    border-top: 0.0625rem solid var(--border-color, #e5e7eb);
}

.dp-dialog__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.65;
}

.dp-dialog__note {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 1rem;
}

.dp-dialog__note[hidden] {
    display: none;
}

.dp-dialog__note label {
    color: var(--text-primary, #1f2937);
    font-size: 0.875rem;
    font-weight: 700;
}

.dp-dialog__note label span,
.dp-dialog__note small {
    color: var(--text-secondary, #6b7280);
    font-size: 0.75rem;
    font-weight: 400;
}

.dp-dialog__note textarea {
    width: 100%;
    min-height: 7rem;
    padding: 0.75rem;
    resize: vertical;
    border: 0.0625rem solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 0.5rem);
    background: var(--color-bg-primary, #fff);
    color: var(--text-primary, #1f2937);
    font: inherit;
}

.dp-dialog__error {
    margin: 0.75rem 0 0;
    color: var(--color-error, #dc2626);
    font-size: 0.8125rem;
    font-weight: 700;
}

.dp-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border: 0;
    border-radius: var(--radius-lg, 0.5rem);
    background: transparent;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
}

.dp-icon-button:hover {
    background: var(--color-bg-secondary, #f3f4f6);
}

.dp-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    z-index: var(--z-toast, 1080);
    padding: 0.625rem 1rem;
    transform: translateX(-50%) translateY(1rem);
    border-radius: var(--radius-lg, 0.5rem);
    background: var(--text-primary, #1f2937);
    box-shadow: var(--shadow-4, 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1));
    color: var(--color-bg-primary, #fff);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dp-toast.is-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.dp-toast--success {
    background: var(--color-success, #16a34a);
    color: #fff;
}

.dp-toast--error {
    background: var(--color-error, #dc2626);
    color: #fff;
}

@media (min-width: 48rem) {
    .dp-state {
        grid-template-columns: minmax(14rem, 0.8fr) minmax(18rem, 1.2fr);
    }
}

@media (max-width: 30rem) {
    .dp-refresh {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dp-refresh__button,
    .dp-state__actions .dp-button,
    .dp-state__actions a {
        width: 100%;
    }

    .dp-dialog__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .dp-dialog__footer .dp-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dp-toast,
    .mx-card {
        transition: none;
    }
}

@media (forced-colors: active) {
    .dp-hero,
    .dp-refresh,
    .dp-summary,
    .dp-state,
    .dp-dialog {
        border: 0.125rem solid CanvasText;
    }
}
