.fashion-page {
    --fashion-bg: #f7f3ee;
    --fashion-ink: #1a1814;
    --fashion-muted: #6b6560;
    --fashion-accent: #8b3a3a;
    --fashion-accent-hover: #6e2e2e;
    --fashion-card: #fffcf8;
    --fashion-border: #e4ddd4;
    --fashion-shadow: 0 12px 40px rgba(26, 24, 20, 0.08);
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--fashion-bg);
    color: var(--fashion-ink);
    padding: 1.25rem;
}

.fashion-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.fashion-wrap {
    max-width: 1280px;
}

.fashion-hero {
    padding: 0.5rem 0 0.25rem;
}

.fashion-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fashion-accent);
    font-weight: 600;
}

.fashion-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.fashion-lead {
    max-width: 42rem;
    color: var(--fashion-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.upload-card {
    display: block;
    cursor: pointer;
    margin: 0;
    height: 100%;
    position: relative;
}

.upload-order {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--fashion-accent);
    color: #fff;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    line-height: 1.2;
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    padding: 1.25rem 1rem;
    background: var(--fashion-card);
    border: 2px dashed var(--fashion-border);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.upload-card:hover .upload-card-inner,
.upload-card:focus-within .upload-card-inner {
    border-color: var(--fashion-accent);
    box-shadow: var(--fashion-shadow);
}

.upload-card.has-file .upload-card-inner {
    border-style: solid;
    border-color: #c9bfb3;
}

.upload-icon {
    font-size: 1.75rem;
    color: var(--fashion-accent);
    margin-bottom: 0.5rem;
}

.upload-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.78rem;
    color: var(--fashion-muted);
    margin-top: 0.2rem;
}

.upload-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.upload-card.has-file .upload-icon,
.upload-card.has-file .upload-label,
.upload-card.has-file .upload-hint {
    opacity: 0;
}

.upload-change {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.45rem;
    font-size: 0.72rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.upload-card.has-file:hover .upload-change {
    opacity: 1;
}

.panel-fashion {
    background: var(--fashion-card);
    border: 1px solid var(--fashion-border);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 20px rgba(26, 24, 20, 0.04);
}

.fashion-label {
    font-weight: 600;
    font-size: 0.88rem;
}

.fashion-textarea {
    border-radius: 10px;
    border-color: var(--fashion-border);
    resize: vertical;
}

.fashion-textarea:focus {
    border-color: var(--fashion-accent);
    box-shadow: 0 0 0 0.2rem rgba(139, 58, 58, 0.15);
}

.btn-fashion {
    background: var(--fashion-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 999px;
}

.btn-fashion:hover,
.btn-fashion:focus {
    background: var(--fashion-accent-hover);
    color: #fff;
}

.btn-fashion:disabled {
    opacity: 0.65;
}

.result-section {
    animation: fashionFadeIn 0.5s ease;
}

@keyframes fashionFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-frame {
    background: var(--fashion-card);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--fashion-shadow);
    border: 1px solid var(--fashion-border);
}

.result-img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.history-card {
    background: var(--fashion-card);
    border: 1px solid var(--fashion-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.history-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.history-card .card-body {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
}

.history-ref-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 0.35rem;
}

.history-ref-row img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
}
