:root {
    --favorite-ink: #172554;
    --favorite-muted: #64748b;
    --favorite-paper: #fffdf7;
    --favorite-line: #dbe4f0;
    --favorite-blue: #2563eb;
    --favorite-navy: #0f2a5f;
    --favorite-yellow: #fbbf24;
    --favorite-red: #ef4444;
    --favorite-green: #16a34a;
    --favorite-shadow: 0 22px 60px rgba(15, 42, 95, 0.14);
}

.favorite-workbench [hidden] {
    display: none !important;
}

.site-header-unified .favorite-brand-mark {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: url("/favicon.svg") center / contain no-repeat;
    filter: drop-shadow(0 8px 16px rgba(244, 91, 147, 0.24));
}

.favorite-page-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr);
    gap: 1.35rem;
    align-items: center;
    overflow: hidden;
    padding-top: 2.2rem;
    padding-bottom: 1.5rem;
}

.favorite-page-intro::after {
    content: "";
    position: absolute;
    right: 3%;
    top: 12%;
    width: 190px;
    aspect-ratio: 1;
    border: 24px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    box-shadow: inset 0 0 0 9px rgba(251, 191, 36, 0.12);
    pointer-events: none;
}

.favorite-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--favorite-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.favorite-page-intro h1,
.favorite-workbench h2,
.favorite-content h2,
.favorite-result-hero h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--favorite-ink);
}

.favorite-page-intro h1 {
    max-width: 820px;
    font-size: clamp(2.45rem, 5vw, 4.55rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.favorite-page-intro .lead {
    max-width: 760px;
    margin-top: 0.85rem;
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.55;
}

.favorite-intro-proof {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid rgba(15, 42, 95, 0.12);
    border-radius: 22px;
    background: rgba(255, 253, 247, 0.88);
    box-shadow: 0 16px 40px rgba(15, 42, 95, 0.08);
    backdrop-filter: blur(14px);
}

.favorite-proof-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0.7rem;
    align-items: center;
}

.favorite-proof-row strong {
    display: block;
    color: var(--favorite-ink);
    font-size: 0.95rem;
}

.favorite-proof-row span:last-child {
    color: var(--favorite-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.favorite-proof-icon {
    display: grid;
    width: 40px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 15px;
    background: var(--favorite-navy);
    color: #fff;
    font-weight: 900;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.favorite-workbench {
    position: relative;
    margin-bottom: 3rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 42, 95, 0.14);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 45%),
        var(--favorite-paper);
    box-shadow: var(--favorite-shadow);
}

.favorite-tabs {
    display: flex;
    gap: 0.3rem;
    padding: 0.55rem;
    border-bottom: 1px solid var(--favorite-line);
    background: rgba(255, 255, 255, 0.68);
}

.favorite-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--favorite-muted);
    font-weight: 800;
    cursor: pointer;
}

.favorite-tab.is-active,
.favorite-tab[aria-selected="true"] {
    background: var(--favorite-navy);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 42, 95, 0.18);
}

.favorite-panel {
    padding: clamp(1rem, 2.2vw, 1.55rem);
}

.favorite-mobile-quick-start {
    display: none;
}

.favorite-loading,
.favorite-error {
    display: grid;
    min-height: 360px;
    place-items: center;
    padding: 2rem;
    text-align: center;
}

.favorite-loading-card,
.favorite-error-card {
    max-width: 560px;
    padding: 2rem;
    border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 24px;
    background: #fff;
}

.favorite-loader {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border: 6px solid #dbeafe;
    border-top-color: var(--favorite-blue);
    border-radius: 50%;
    animation: favorite-spin 0.9s linear infinite;
}

@keyframes favorite-spin {
    to { transform: rotate(360deg); }
}

.favorite-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: start;
    margin-bottom: 1rem;
}

.favorite-panel-heading h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.6rem, 2.5vw, 2.15rem);
}

.favorite-panel-heading p {
    max-width: 680px;
    color: var(--favorite-muted);
    line-height: 1.5;
}

.favorite-local-badge {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 800;
}

.favorite-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 1rem;
}

.favorite-setup-controls,
.favorite-pool-preview {
    padding: clamp(0.95rem, 2vw, 1.2rem);
    border: 1px solid var(--favorite-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
}

.favorite-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.favorite-field label,
.favorite-seed-row label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--favorite-ink);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.favorite-field select,
.favorite-seed-row input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: var(--favorite-ink);
    padding: 0.75rem 0.85rem;
    font: inherit;
}

.favorite-field select:focus,
.favorite-seed-row input:focus {
    outline: 3px solid rgba(37, 99, 235, 0.16);
    border-color: var(--favorite-blue);
}

.favorite-seed-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: end;
    margin-top: 0.75rem;
}

.favorite-seed-row > div:first-child {
    min-width: 0;
}

.favorite-ghost-button,
.favorite-primary-button,
.favorite-secondary-button,
.favorite-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border-radius: 14px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.favorite-primary-button {
    border: 1px solid var(--favorite-navy);
    background: var(--favorite-navy);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 42, 95, 0.2);
}

.favorite-secondary-button {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.favorite-ghost-button {
    border: 1px solid #d7e0ea;
    background: #fff;
    color: var(--favorite-ink);
}

.favorite-danger-button {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.favorite-primary-button:hover:not(:disabled),
.favorite-secondary-button:hover:not(:disabled),
.favorite-ghost-button:hover:not(:disabled),
.favorite-danger-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 42, 95, 0.12);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.favorite-checkbox-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--favorite-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.favorite-checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    accent-color: var(--favorite-blue);
}

.favorite-setup-actions,
.favorite-batch-actions,
.favorite-result-actions,
.favorite-saved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.favorite-pool-preview {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.35), transparent 34%),
        linear-gradient(145deg, #173b7a, #0f2a5f 68%);
}

.favorite-pool-preview::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 180px;
    aspect-ratio: 1;
    border: 18px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.favorite-count-label {
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.favorite-pool-count {
    display: block;
    margin: 0.25rem 0 0.55rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 4.7rem);
    line-height: 1;
}

.favorite-pool-preview p {
    position: relative;
    z-index: 1;
    color: #dbeafe;
    line-height: 1.45;
}

.favorite-pool-preview .favorite-setup-actions {
    position: relative;
    z-index: 1;
}

.favorite-pool-preview .favorite-primary-button {
    border-color: var(--favorite-yellow);
    background: var(--favorite-yellow);
    color: #422006;
    box-shadow: 0 12px 24px rgba(251, 191, 36, 0.22);
}

.favorite-pool-preview .favorite-secondary-button {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.favorite-mode-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.88rem;
}

.favorite-resume-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fde68a;
    border-radius: 16px;
    background: #fffbeb;
    color: #92400e;
}

.favorite-stage-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.favorite-stage-eyebrow {
    margin-bottom: 0.35rem;
    color: var(--favorite-blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.favorite-stage-header h2 {
    margin-bottom: 0.4rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.favorite-stage-meta {
    color: var(--favorite-muted);
}

.favorite-stage-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.favorite-progress-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem 1rem;
    align-items: center;
    margin: 1.3rem 0;
    padding: 1rem;
    border: 1px solid var(--favorite-line);
    border-radius: 18px;
    background: #fff;
}

.favorite-progress-card progress {
    width: 100%;
    height: 13px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #dbeafe;
}

.favorite-progress-card progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #dbeafe;
}

.favorite-progress-card progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--favorite-blue), #06b6d4);
}

.favorite-progress-card strong {
    color: var(--favorite-ink);
    font-size: 0.9rem;
}

.favorite-progress-card p {
    grid-column: 1 / -1;
    color: var(--favorite-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.favorite-batch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.favorite-choice-card {
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid #dbe4f0;
    border-radius: 20px;
    background: #fff;
    color: var(--favorite-ink);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 42, 95, 0.07);
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.favorite-choice-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 16px 30px rgba(15, 42, 95, 0.13);
}

.favorite-choice-card.is-selected {
    border-color: var(--favorite-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 18px 34px rgba(37, 99, 235, 0.15);
}

.favorite-choice-check {
    position: absolute;
    z-index: 2;
    top: 0.7rem;
    right: 0.7rem;
    display: grid;
    width: 30px;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--favorite-choice-bg, #e2e8f0);
    color: var(--favorite-ink);
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(15, 42, 95, 0.12);
}

.favorite-choice-card.is-selected .favorite-choice-check {
    background: var(--favorite-blue);
    color: #fff;
}

.favorite-choice-art {
    display: grid;
    min-height: 150px;
    place-items: center;
    padding: 0.9rem;
    background:
        radial-gradient(circle at 50% 42%, #fff 0 28%, transparent 29%),
        linear-gradient(155deg, #eff6ff, #f8fafc);
}

.favorite-choice-art img {
    width: 100%;
    max-width: 142px;
    height: 132px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 12px 12px rgba(15, 42, 95, 0.13));
}

.favorite-choice-copy {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem;
}

.favorite-choice-copy strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-choice-copy > span:not(.favorite-type-row) {
    color: var(--favorite-muted);
    font-size: 0.78rem;
}

.favorite-type-row,
.favorite-rank-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.favorite-type-row .type-pill,
.favorite-rank-types .type-pill {
    padding: 0.2rem 0.45rem;
    font-size: 0.64rem;
}

.favorite-batch-footer {
    position: sticky;
    z-index: 4;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin: 1.2rem -0.5rem -0.5rem;
    padding: 0.85rem;
    border: 1px solid rgba(15, 42, 95, 0.1);
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: 0 -10px 30px rgba(15, 42, 95, 0.08);
    backdrop-filter: blur(14px);
}

.favorite-selection-count {
    color: var(--favorite-muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.favorite-result-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 4vw, 2.2rem);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.35), transparent 28%),
        linear-gradient(145deg, #eef6ff, #fffdf7 58%);
    border: 1px solid #bfdbfe;
}

.favorite-result-hero h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.favorite-result-hero p {
    max-width: 800px;
    color: var(--favorite-muted);
    line-height: 1.65;
}

.favorite-ranking-list {
    display: grid;
    gap: 0.7rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.favorite-rank-item {
    display: grid;
    grid-template-columns: 48px 24px 68px minmax(0, 1fr) minmax(110px, auto) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--favorite-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 42, 95, 0.06);
}

.favorite-rank-item.is-dragging {
    opacity: 0.45;
}

.favorite-rank-number {
    display: grid;
    width: 42px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 14px;
    background: var(--favorite-navy);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 800;
}

.favorite-rank-grip {
    color: #94a3b8;
    cursor: grab;
    letter-spacing: -0.2em;
}

.favorite-rank-item > img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.favorite-rank-copy {
    min-width: 0;
}

.favorite-rank-copy strong,
.favorite-rank-copy span {
    display: block;
}

.favorite-rank-copy strong {
    overflow: hidden;
    color: var(--favorite-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-rank-copy span {
    margin-top: 0.25rem;
    color: var(--favorite-muted);
    font-size: 0.77rem;
}

.favorite-rank-actions {
    display: flex;
    gap: 0.35rem;
}

.favorite-rank-actions button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #fff;
    color: var(--favorite-ink);
    cursor: pointer;
}

.favorite-saved-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--favorite-muted);
}

.favorite-saved-empty strong {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--favorite-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
}

.favorite-saved-meta {
    margin-bottom: 1rem;
    color: var(--favorite-muted);
}

.favorite-content {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.favorite-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.favorite-content-card {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--favorite-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
}

.favorite-content-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.favorite-content-card h3 {
    margin: 1rem 0 0.35rem;
    color: var(--favorite-ink);
}

.favorite-content-card p,
.favorite-content-card li {
    color: #475569;
    line-height: 1.72;
}

.favorite-content-card ul,
.favorite-content-card ol {
    padding-left: 1.2rem;
}

.favorite-faq details {
    border-top: 1px solid var(--favorite-line);
}

.favorite-faq details:first-of-type {
    border-top: 0;
}

.favorite-faq summary {
    padding: 1rem 0;
    color: var(--favorite-ink);
    font-weight: 800;
    cursor: pointer;
}

.favorite-faq details p {
    padding: 0 0 1rem;
}

.favorite-related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.favorite-related-links a {
    padding: 1rem;
    border: 1px solid var(--favorite-line);
    border-radius: 16px;
    background: #fff;
    color: var(--favorite-ink);
    font-weight: 800;
    text-decoration: none;
}

.favorite-related-links a span {
    display: block;
    margin-top: 0.35rem;
    color: var(--favorite-muted);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.favorite-toast {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    max-width: min(92vw, 520px);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    text-align: center;
    font-weight: 750;
}

@media (max-width: 1050px) {
    .favorite-page-intro,
    .favorite-setup-grid {
        grid-template-columns: 1fr;
    }

    .favorite-intro-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .favorite-proof-row {
        grid-template-columns: 42px 1fr;
    }

    .favorite-proof-icon {
        width: 42px;
    }

    .favorite-batch-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header-unified .favorite-brand-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .favorite-page-intro {
        gap: 0.8rem;
        padding-top: 0.9rem;
        padding-bottom: 0.8rem;
    }

    .favorite-page-intro::after {
        display: none;
    }

    .favorite-page-intro h1 {
        font-size: clamp(2.35rem, 12vw, 3.35rem);
        line-height: 0.98;
    }

    .favorite-page-intro .lead {
        margin-top: 0.55rem;
        font-size: 0.94rem;
        line-height: 1.45;
    }

    .favorite-kicker {
        margin-bottom: 0.55rem;
        padding: 0.35rem 0.6rem;
        font-size: 0.66rem;
    }

    .favorite-intro-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        padding: 0.5rem;
        border-radius: 16px;
    }

    .favorite-proof-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.25rem;
        text-align: center;
    }

    .favorite-proof-icon {
        width: 34px;
        border-radius: 11px;
    }

    .favorite-proof-row strong {
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .favorite-proof-row > span:last-child > span {
        display: none;
    }

    .favorite-content-grid,
    .favorite-related-links {
        grid-template-columns: 1fr;
    }

    .favorite-mobile-quick-start {
        display: flex;
        justify-content: space-between;
        gap: 0.7rem;
        align-items: center;
        margin-bottom: 0.8rem;
        padding: 0.7rem;
        border: 1px solid #bfdbfe;
        border-radius: 16px;
        background: linear-gradient(135deg, #eff6ff, #fffdf7);
    }

    .favorite-mobile-quick-start span {
        min-width: 0;
    }

    .favorite-mobile-quick-start strong,
    .favorite-mobile-quick-start small {
        display: block;
    }

    .favorite-mobile-quick-start strong {
        color: var(--favorite-ink);
        font-size: 0.9rem;
    }

    .favorite-mobile-quick-start small {
        margin-top: 0.18rem;
        color: var(--favorite-muted);
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .favorite-mobile-quick-start button {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0.55rem 0.75rem;
    }

    .favorite-field-grid,
    .favorite-seed-row {
        grid-template-columns: 1fr;
    }

    .favorite-panel-heading,
    .favorite-stage-header,
    .favorite-batch-footer,
    .favorite-resume-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .favorite-panel-heading,
    .favorite-stage-header {
        display: grid;
        grid-template-columns: 1fr;
    }

    .favorite-stage-tools {
        justify-content: flex-start;
    }

    .favorite-batch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .favorite-choice-art {
        min-height: 122px;
        padding: 0.6rem;
    }

    .favorite-choice-art img {
        height: 108px;
    }

    .favorite-choice-copy {
        padding: 0.75rem;
    }

    .favorite-rank-item {
        grid-template-columns: 42px 54px minmax(0, 1fr) auto;
        gap: 0.55rem;
    }

    .favorite-rank-number {
        width: 38px;
    }

    .favorite-rank-grip,
    .favorite-rank-types {
        display: none;
    }

    .favorite-rank-item > img {
        width: 52px;
        height: 52px;
    }

    .favorite-rank-actions {
        display: grid;
        grid-template-columns: repeat(2, 32px);
    }

    .favorite-rank-actions button:last-child {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 440px) {
    .favorite-workbench {
        border-radius: 22px;
    }

    .favorite-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .favorite-tab {
        justify-content: center;
        padding-inline: 0.55rem;
    }

    .favorite-panel {
        padding: 0.85rem;
    }

    .favorite-batch-grid {
        grid-template-columns: 1fr 1fr;
    }

    .favorite-choice-copy strong {
        font-size: 0.88rem;
    }

    .favorite-type-row .type-pill {
        font-size: 0.56rem;
    }

    .favorite-setup-actions > *,
    .favorite-batch-actions > *,
    .favorite-result-actions > *,
    .favorite-saved-actions > * {
        flex: 1 1 100%;
    }

    .favorite-batch-footer {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    .favorite-loader,
    .favorite-choice-card,
    .favorite-primary-button,
    .favorite-secondary-button,
    .favorite-ghost-button,
    .favorite-danger-button {
        animation: none;
        transition: none;
    }
}
