.tm-dress-card {
    padding: 24px;
    max-width: 560px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    margin: 0 auto;
}
.tm-dress-header {
    margin-bottom: 24px;
}
.tm-dress-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.3;
}
.tm-dress-intro {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.55;
}
.tm-dress-privacy {
    margin: 0;
    font-size: 0.82rem;
    color: #38bdf8;
    line-height: 1.45;
}
.tm-profile-badge {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
}
.tm-profile-badge strong {
    color: #f8b4d0;
}
.tm-profile-badge a {
    color: #38bdf8;
    text-decoration: underline;
}
.tm-personalize-cta {
    margin-top: 6px;
    padding: 16px;
    background: rgba(141, 63, 92, 0.14);
    border: 1px solid rgba(141, 63, 92, 0.45);
    border-radius: 12px;
}
.tm-personalize-cta p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.55;
}
.tm-suggestion-card[data-bucket="neutral"] { border-left: 3px solid #64748b; }
.tm-suggestion-card[data-bucket="tonal"] { border-left: 3px solid #8d3f5c; }
.tm-suggestion-card[data-bucket="contrast"] { border-left: 3px solid #d4a24e; }
.tm-dress-form fieldset {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}
.tm-dress-form legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
}
.tm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.tm-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tm-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border: 2px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.tm-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tm-type-option.is-selected,
.tm-type-option:has(input:checked) {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
}
.tm-type-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.tm-type-label {
    font-weight: 600;
}
.tm-type-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.3;
}
.tm-file-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.tm-dress-card input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    font-size: 0.95rem;
    box-sizing: border-box;
}
.tm-image-picker {
    margin-top: 16px;
}
.tm-picker-label {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #38bdf8;
}
.tm-canvas-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #334155;
}
.tm-dress-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}
.tm-picker-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.85), 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}
.tm-color-picker-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px 12px;
    align-items: center;
}
.tm-dress-card input[type="color"] {
    width: 64px;
    height: 48px;
    padding: 4px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    cursor: pointer;
    grid-row: span 2;
    align-self: center;
}
.tm-hex-label {
    grid-column: 2;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}
.tm-color-hex-input {
    grid-column: 2;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    box-sizing: border-box;
    text-transform: uppercase;
}
.tm-color-hex-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.tm-field-hint {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}
.tm-dress-loading {
    margin: 20px 0 0;
    color: #94a3b8;
    font-size: 0.92rem;
}
.tm-result {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #334155;
}
.tm-result-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}
.tm-season-warning {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.12);
    border-left: 3px solid #fbbf24;
    color: #fde68a;
    font-size: 0.88rem;
    line-height: 1.45;
}
.tm-outfit-flow {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.tm-outfit-flow--uploaded {
    align-items: flex-start;
}
.tm-outfit-piece {
    flex: 0 0 140px;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #334155;
}
.tm-suggestions-wrap {
    flex: 1;
    min-width: 0;
}
.tm-piece-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.tm-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.tm-suggestion-card {
    position: relative;
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid #22c55e;
}
.tm-suggestion-card--locked .tm-suggestion-inner {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}
.tm-suggestion-card--locked {
    border-color: #334155;
    background: rgba(255, 255, 255, 0.03);
}
.tm-suggestion-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    filter: none;
    pointer-events: none;
}
.tm-suggestion-lock span {
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(45deg, #3b82f6, #6366f1);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tm-color-box {
    width: 100%;
    height: 56px;
    border-radius: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
    margin-bottom: 8px;
}
.tm-color-hex {
    display: inline-block;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    cursor: pointer;
}
.tm-color-hex:hover {
    background: rgba(59, 130, 246, 0.25);
}
.tm-color-name {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 600;
}
.tm-suggestion-reason {
    margin: 8px 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #cbd5e1;
}
.tm-suggestion-shop {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8 !important;
    text-decoration: none !important;
}
.tm-suggestion-shop:hover {
    text-decoration: underline !important;
}
.tm-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    padding-top: 2rem;
}
.tm-tip {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(167, 139, 250, 0.1);
    color: #ddd6fe;
    font-size: 0.88rem;
    line-height: 1.45;
}
.tm-dress-pro-cta {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(45deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tm-dress-pro-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.tm-btn-dress {
    display: block;
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 10px;
    background: linear-gradient(45deg, #22c55e, #06b6d4);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tm-btn-dress:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    color: #fff !important;
}
@media (max-width: 520px) {
    .tm-outfit-flow--uploaded {
        flex-direction: column;
    }
    .tm-outfit-piece {
        flex: 1 1 auto;
        width: 100%;
    }
    .tm-flow-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }
}
