/* ========================================
   DASHBOARD PAGE STYLES
   ======================================== */

.dashboard-section {
    padding: calc(80px + var(--space-xl)) 0 var(--space-3xl);
    min-height: 100vh;
    background: var(--color-cream);
}

.dashboard-header {
    margin-bottom: var(--space-xl);
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.dashboard-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0;
}

.dashboard-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-sage);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dashboard-new-btn:hover {
    background: var(--color-sage-dark, #6b8f71);
    transform: translateY(-1px);
}

.dashboard-new-btn svg {
    width: 16px;
    height: 16px;
}

.dashboard-header p {
    color: var(--color-warm-gray);
    margin-top: var(--space-xs);
}

.dashboard-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 320px;
    }
}

/* ========================================
   GENERATIONS LIST
   ======================================== */
.generations-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* ========================================
   ORDER CARD (Simplified)
   ======================================== */
.order-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: grid;
    transition: all 0.3s var(--ease-gentle);
}

.order-card:hover {
    box-shadow: var(--shadow-medium);
}

@media (min-width: 640px) {
    .order-card {
        grid-template-columns: 200px 1fr;
    }
}

.order-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-light-gray);
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-gentle);
}

.order-card:hover .order-image img {
    transform: scale(1.03);
}

.order-info {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    justify-content: center;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.order-date {
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.order-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-rose-light);
    color: var(--color-charcoal);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.btn-order-download {
    align-self: flex-start;
    margin-top: var(--space-xs);
}

.btn-order-download svg {
    flex-shrink: 0;
}

/* Order processing state */
.order-processing {
    padding: var(--space-xl);
    text-align: center;
    color: var(--color-warm-gray);
}

.processing-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-light-gray);
    border-top-color: var(--color-sage);
    border-radius: 50%;
    margin: 0 auto var(--space-sm);
    animation: spin 1s linear infinite;
}

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

/* ========================================
   SIDEBAR
   ======================================== */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: var(--space-lg);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-light-gray);
}

/* Card Header Row */
.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-light-gray);
}

.card-header-row h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Edit Button */
.btn-edit {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--color-rose-light);
    color: var(--color-sage-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s var(--ease-gentle);
}

.btn-edit:hover {
    background: var(--color-sage);
    color: white;
}

/* ========================================
   PARENT GENETICS SIDEBAR
   ======================================== */
.genetics-view,
.genetics-edit {
    padding-top: var(--space-xs);
}

.genetics-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.genetics-parent {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.genetics-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-warm-gray);
}

.genetics-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trait-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-rose-light);
    color: var(--color-charcoal);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.genetics-note {
    font-size: 0.75rem;
    color: var(--color-warm-gray);
    font-style: italic;
    margin-top: var(--space-sm);
}

/* Genetics Rarity Display */
.genetics-rarity {
    margin-bottom: var(--space-md);
}

.genetics-rarity:empty {
    display: none;
}

.rarity-display {
    background: linear-gradient(135deg, #fff9f5 0%, #fef3eb 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    border: 1px solid rgba(199, 165, 137, 0.2);
}

.rarity-display-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.rarity-display-emoji {
    font-size: 1.25rem;
}

.rarity-display-tier {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-ocean);
}

.rarity-display-percent {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    line-height: 1.2;
}

.rarity-display-note {
    font-size: 0.6875rem;
    color: var(--color-warm-gray);
    margin-top: 2px;
}

/* Invite to complete genetics */
.rarity-invite {
    background: var(--color-light-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.rarity-invite:hover {
    background: var(--color-rose-light);
    border-color: rgba(199, 165, 137, 0.3);
}

.rarity-invite-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.rarity-invite-text {
    flex: 1;
}

.rarity-invite-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.rarity-invite-subtitle {
    font-size: 0.6875rem;
    color: var(--color-warm-gray);
}

/* Genetics View Mode - Feature Row Layout (like offer analysis cards) */
.genetics-view-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.genetics-parent-block {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.genetics-parent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-rose-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-sage-dark);
}

.genetics-traits-grid {
    display: flex;
    flex-direction: column;
}

.genetics-trait-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.genetics-trait-item:last-child {
    border-bottom: none;
}

.genetics-trait-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-warm-gray);
    flex-shrink: 0;
}

.genetics-trait-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-charcoal);
    text-align: right;
}

.genetics-trait-value.empty {
    color: var(--color-warm-gray);
    font-style: italic;
    font-weight: 400;
}

/* Genetics Edit Form - New Block Layout */
.genetics-edit {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.genetics-block {
    background: var(--color-rose-light);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.genetics-block-header {
    margin-bottom: var(--space-sm);
}

.genetics-block-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-sage-dark);
}

.genetics-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-sm);
}

.form-group-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-group-compact label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-warm-gray);
}

.form-select-sm {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
    cursor: pointer;
}

.form-select-sm:focus {
    outline: none;
    border-color: var(--color-sage);
}

/* Legacy form styles (keep for baby edit) */
.genetics-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-warm-gray);
}

.form-select,
.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--color-sage);
}

/* Two-column layout for genetics form */
.genetics-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-sm);
}

.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-light-gray);
}

.edit-actions .btn {
    padding: 6px 14px;
    font-size: 0.8125rem;
}

/* ========================================
   ABOUT BABY SIDEBAR
   ======================================== */
.baby-view,
.baby-edit {
    padding-top: var(--space-xs);
}

/* Baby Info Card - Feature Row Layout (like genetics) */
.baby-info-block {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.baby-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.baby-info-row:last-child {
    border-bottom: none;
}

.baby-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-warm-gray);
    flex-shrink: 0;
}

.baby-info-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-charcoal);
    text-align: right;
}

.baby-info-value.empty {
    color: var(--color-warm-gray);
    font-style: italic;
    font-weight: 400;
}

/* Legacy grid layout (keep for compatibility) */
.baby-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.baby-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Shared field label style (used in both genetics and baby) */
.field-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-warm-gray);
}

/* Shared field value style */
.field-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.field-value.empty {
    color: var(--color-warm-gray);
    font-weight: 400;
    font-style: italic;
}

/* Empty state for trait tags */
.trait-tag.empty {
    background: var(--color-light-gray);
    color: var(--color-warm-gray);
    font-style: italic;
}

/* Gender Toggle */
.gender-toggle {
    display: flex;
    gap: var(--space-xs);
}

.gender-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--color-light-gray);
    color: var(--color-warm-gray);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s var(--ease-gentle);
}

.gender-btn svg {
    width: 16px;
    height: 16px;
}

.gender-btn:hover {
    background: var(--color-rose-light);
    color: var(--color-charcoal);
}

.gender-btn.active {
    background: var(--color-sage);
    color: white;
    border-color: var(--color-sage-dark);
}

.gender-btn.active svg {
    color: white;
}

.baby-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.user-details h4 {
    font-size: 1rem;
    font-weight: 600;
}

.user-details p {
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
    background: var(--color-rose-light);
    border-radius: var(--radius-md);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-sage-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-warm-gray);
    margin-top: 4px;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--color-rose-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage);
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
}

.empty-state h3 {
    margin-bottom: var(--space-xs);
}

.empty-state p {
    color: var(--color-warm-gray);
    margin-bottom: var(--space-lg);
}

/* ========================================
   BUTTON SIZES
   ======================================== */
.btn-sm {
    padding: 0.625rem 1.25rem;
    min-height: 40px;
    font-size: 0.875rem;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* ========================================
   SKELETON LOADING STATES
   ======================================== */

/* Base skeleton shimmer animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Soft pulse for a gentler effect */
@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

/* Base skeleton element */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-rose-light) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        var(--color-rose-light) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* Skeleton text line */
.skeleton-text {
    height: 14px;
    border-radius: var(--radius-full);
}

.skeleton-text.lg {
    height: 18px;
}

.skeleton-text.sm {
    height: 11px;
}

/* Skeleton circle (for avatars) */
.skeleton-circle {
    border-radius: 50%;
    flex-shrink: 0;
}

/* Skeleton box (for stat boxes, buttons) */
.skeleton-box {
    border-radius: var(--radius-md);
}

/* Account Card Skeleton */
.user-info.is-loading .user-avatar {
    background: linear-gradient(
        90deg,
        var(--color-rose-light) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        var(--color-rose-light) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.user-info.is-loading .skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.quick-stats.is-loading .stat-value {
    background: linear-gradient(
        90deg,
        var(--color-light-gray) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        var(--color-light-gray) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
    color: transparent;
    border-radius: var(--radius-sm);
    min-width: 32px;
    display: inline-block;
}

/* Genetics & Baby View Skeleton */
.genetics-view.is-loading,
.baby-view.is-loading {
    padding-top: var(--space-sm);
}

.skeleton-genetics-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.skeleton-parent-block {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.skeleton-parent-header {
    padding: 10px 14px;
    background: var(--color-rose-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.skeleton-parent-header .skeleton {
    width: 32px;
    height: 10px;
}

.skeleton-trait-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.skeleton-trait-row:last-child {
    border-bottom: none;
}

.skeleton-trait-label {
    width: 50px;
    height: 12px;
}

.skeleton-trait-value {
    width: 60px;
    height: 14px;
}

/* Legacy skeleton styles (keep for compatibility) */
.skeleton-parent-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-label {
    width: 40px;
    height: 10px;
}

.skeleton-traits {
    display: flex;
    gap: 6px;
}

.skeleton-trait {
    height: 26px;
    width: 72px;
    border-radius: var(--radius-full);
}

.skeleton-trait:nth-child(2) {
    width: 64px;
}

/* Baby info skeleton - Card style */
.skeleton-baby-block {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.skeleton-baby-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.skeleton-baby-row:last-child {
    border-bottom: none;
}

.skeleton-baby-label {
    width: 50px;
    height: 12px;
}

.skeleton-baby-value {
    width: 50px;
    height: 14px;
}

.skeleton-baby-value.wide {
    width: 70px;
}

/* Legacy baby skeleton (keep for compatibility) */
.skeleton-baby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.skeleton-baby-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-field-label {
    width: 50px;
    height: 10px;
}

.skeleton-field-value {
    width: 60px;
    height: 18px;
}

.skeleton-field-value.wide {
    width: 80px;
}

/* Main content loading skeleton */
.generations-list.is-loading {
    min-height: 200px;
}

/* Fade out skeleton when content loads */
.sidebar-card.loaded .is-loading {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========================================
   DRAFTS SECTION - In Progress Items
   ======================================== */
.drafts-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px dashed var(--color-light-gray);
}

.drafts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.drafts-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-warm-gray);
    margin-bottom: 0;
}

.drafts-title svg {
    color: var(--color-peach);
}

.drafts-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.drafts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Draft Card - warm, inviting, encouraging return */
.draft-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #fffcfa 0%, #fff9f5 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(139, 90, 43, 0.06);
    border: 1px solid rgba(199, 165, 137, 0.2);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Left line removed for cleaner look */

.draft-card:hover {
    border-color: rgba(199, 165, 137, 0.35);
    box-shadow: 0 6px 24px rgba(139, 90, 43, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .draft-card {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        padding: var(--space-md);
    }

    .draft-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
        margin-top: var(--space-sm);
    }

    .draft-actions .btn-primary {
        flex: 1;
    }
}

.draft-preview {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #f0ebe6 0%, #e8e2db 100%);
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .draft-preview {
        width: 56px;
        height: 56px;
    }
}

.draft-ultrasound {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.draft-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ocean);
    opacity: 0.4;
}

.draft-info {
    flex: 1;
    min-width: 0;
}

.draft-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 6px;
}

.draft-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ocean);
    background: rgba(167, 109, 93, 0.12);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.draft-date {
    font-size: 0.75rem;
    color: var(--color-warm-gray);
    font-weight: 450;
}

.draft-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.draft-gender {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--color-charcoal);
    font-weight: 500;
}

.draft-gender-icon {
    width: 16px;
    height: 16px;
    color: var(--color-ocean);
    flex-shrink: 0;
}

.draft-step {
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
    font-weight: 450;
}

.draft-step::before {
    content: "·";
    margin-right: 6px;
    color: var(--color-light-gray);
}

.draft-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.draft-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(167, 109, 93, 0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
    max-width: 100px;
}

.draft-progress-fill {
    height: 100%;
    background: var(--color-ocean);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.draft-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-ocean);
    min-width: 32px;
}

.draft-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.draft-actions .btn-primary {
    white-space: nowrap;
    background: var(--color-ocean);
    box-shadow: 0 2px 8px rgba(167, 109, 93, 0.25);
}

.draft-actions .btn-primary:hover {
    background: var(--color-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 109, 93, 0.35);
}

.btn-delete-draft {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(199, 165, 137, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-warm-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-draft:hover {
    background: #fff0f0;
    border-color: #f5a5a5;
    color: #d35;
}

.btn-delete-draft svg {
    width: 16px;
    height: 16px;
}

