
.fmpc-app,
.fmpc-app * { box-sizing: border-box; }

.fmpc-app {
    --fmpc-ink: #4b2922;
    --fmpc-muted: #7f6d69;
    --fmpc-pink: #ef5b87;
    --fmpc-pink-dark: #db416f;
    --fmpc-pink-soft: #fff4f7;
    --fmpc-gold: #d9a139;
    --fmpc-border: #f0ded9;
    width: 100%;
    margin: 0 auto 24px;
    color: var(--fmpc-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    container-type: inline-size;
}

.fmpc-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #f0e3df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 46px rgba(77, 43, 34, .07);
}

.fmpc-hero {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: center;
    padding: 42px 46% 36px 56px;
    overflow: hidden;
    background:
        radial-gradient(circle at 9% 24%, rgba(241, 158, 181, .15), transparent 18%),
        radial-gradient(circle at 48% 76%, rgba(241, 158, 181, .11), transparent 19%),
        linear-gradient(90deg, #fffdfd 0%, #fff9fa 57%, #f9e9e5 100%);
}

.fmpc-hero-copy { position: relative; z-index: 3; max-width: 650px; }

.fmpc-kicker {
    display: block;
    margin-bottom: 15px;
    color: #84564c;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .15em;
}

.fmpc-hero h2,
.fmpc-hero h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -.025em;
}

.fmpc-hero h2 {
    color: #4a2921;
    font-size: clamp(38px, 4.2cqw, 52px);
    line-height: 1.04;
}

.fmpc-hero h3 {
    margin-top: 3px;
    color: var(--fmpc-pink);
    font-size: clamp(43px, 4.9cqw, 59px);
    line-height: 1.04;
    white-space: nowrap;
}

.fmpc-hero p {
    max-width: 590px;
    margin: 15px 0 13px;
    color: var(--fmpc-muted);
    font-size: 16px;
    line-height: 1.65;
}

.fmpc-flourish,
.fmpc-gold-divider,
.fmpc-pink-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.fmpc-flourish { width: 170px; color: #ef8ca8; }

.fmpc-flourish::before,
.fmpc-flourish::after,
.fmpc-gold-divider::before,
.fmpc-gold-divider::after,
.fmpc-pink-divider::before,
.fmpc-pink-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: .64;
}

.fmpc-hero-image {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 auto;
    width: 47%;
    overflow: hidden;
}

.fmpc-hero-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, #fff9fa 0%, rgba(255,249,250,.73) 13%, rgba(255,249,250,.05) 44%, rgba(255,255,255,0) 100%);
}

.fmpc-hero-image::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(255,255,255,.30), transparent);
}

.fmpc-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 31%;
    transform: scale(1.03);
    filter: saturate(.94) contrast(.98) brightness(1.03);
}

.fmpc-workspace {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(330px, .78fr) minmax(520px, 1.22fr);
    gap: 14px;
    padding: 0 22px 22px;
    margin-top: -1px;
}

.fmpc-panel {
    min-width: 0;
    border: 1px solid var(--fmpc-border);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 7px 18px rgba(77,43,34,.035);
}

.fmpc-controls { padding: 24px 25px 22px; }
.fmpc-preview-panel { padding: 20px 18px 18px; }

.fmpc-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 17px;
}

.fmpc-section-heading h4,
.fmpc-fieldset legend {
    color: #542f28;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.fmpc-section-heading h4 { margin: 0; font-size: 20px; }
.fmpc-heading-icon { color: var(--fmpc-pink); font-size: 17px; }
.fmpc-crown { color: var(--fmpc-pink); font-size: 26px; line-height: 1; }

.fmpc-field input {
    display: block;
    width: 100%;
    height: 49px;
    padding: 0 15px;
    border: 1px solid #e9dcda;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #5f4540;
    font-size: 15px;
}

.fmpc-field input:focus {
    border-color: #efadc0;
    box-shadow: 0 0 0 4px rgba(239,91,135,.09);
}

.fmpc-field small {
    display: block;
    margin-top: 9px;
    color: #a08c88;
    font-size: 12px;
}

.fmpc-rule { height: 1px; margin: 15px 0 17px; background: #f1e6e2; }

.fmpc-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.fmpc-fieldset legend {
    width: 100%;
    margin: 0 0 13px;
    padding: 0;
    font-size: 17px;
}

.fmpc-moods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.fmpc-moods button,
.fmpc-styles button,
.fmpc-generate,
.fmpc-actions button {
    font: inherit;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.fmpc-moods button {
    min-height: 66px;
    padding: 8px 5px;
    border: 1px solid #eadfdd;
    border-radius: 10px;
    background: #fff;
    color: #5e4742;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 600;
}

.fmpc-moods button span {
    display: block;
    margin-bottom: 6px;
    color: var(--fmpc-pink);
    font-size: 20px;
}

.fmpc-moods button:hover,
.fmpc-moods button.is-active {
    border-color: #f19bb5;
    background: #fff5f8;
    color: var(--fmpc-pink-dark);
    box-shadow: 0 7px 15px rgba(239,91,135,.07);
}

.fmpc-styles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.fmpc-styles button {
    min-height: 45px;
    padding: 8px 5px;
    border: 1px solid #eadfdd;
    border-radius: 10px;
    background: #fff;
    color: #634b46;
    font-size: 12px;
    font-weight: 650;
}

.fmpc-styles button:hover,
.fmpc-styles button.is-active {
    border-color: #f19bb5;
    background: #fff8fa;
    color: var(--fmpc-pink-dark);
}

.fmpc-generate {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #e94d7c, #ef6690 56%, #f28baa);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 13px 22px rgba(233,77,124,.18);
}

.fmpc-generate:hover { transform: translateY(-1px); box-shadow: 0 15px 25px rgba(233,77,124,.22); }
.fmpc-status { min-height: 18px; margin: 10px 0 0; color: #a36876; font-size: 12px; text-align: center; }

.fmpc-preview-title { margin-bottom: 14px; }

.fmpc-card {
    display: grid;
    grid-template-columns: minmax(220px, .86fr) minmax(290px, 1.14fr);
    gap: 18px;
    min-height: 420px;
    padding: 14px;
    border: 1.5px solid #e9b44b;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffefe 0%, #fff6f8 53%, #fffaf8 100%);
    overflow: hidden;
}

.fmpc-card.theme-soft-pink { border-color: #efa9bd; background: linear-gradient(135deg, #fff7fa, #fff1f5 58%, #fff8fa); }
.fmpc-card.theme-golden { border-color: #daa436; background: linear-gradient(135deg, #fffaf0, #fff5e5 58%, #fffdf7); }
.fmpc-card.theme-classic { border-color: #e6d4ce; background: linear-gradient(135deg, #fffdfd, #fffafa 58%, #fffefe); }

.fmpc-card-photo {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e9b44b;
    border-radius: 20px;
    background: #f5ece8;
}

.fmpc-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    object-position: center 36%;
}

.fmpc-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 7px 7px 0;
    text-align: center;
}

.fmpc-heart-mark { color: #f28cab; font-size: 42px; line-height: 1; }

.fmpc-card-copy h3 {
    max-width: 100%;
    margin: 2px 0 4px;
    overflow-wrap: anywhere;
    color: var(--fmpc-pink);
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(38px, 4.3cqw, 54px);
    line-height: 1;
    font-weight: 400;
}

.fmpc-gold-divider { width: 85%; margin: 4px auto 13px; color: #dfaa43; }
.fmpc-pink-divider { width: 66%; margin: 14px auto 0; color: #ee91aa; }

.fmpc-card-copy p {
    margin: 0;
    color: #55332c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 1.7cqw, 18px);
    line-height: 1.46;
}

.fmpc-actions {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr .85fr;
    gap: 11px;
    margin-top: 14px;
}

.fmpc-actions button {
    min-height: 49px;
    padding: 8px 10px;
    border: 1px solid #eadedb;
    border-radius: 10px;
    background: #fff;
    color: #6b4c46;
    font-size: 13px;
    font-weight: 700;
}

.fmpc-actions button:hover { border-color: #efb4c3; box-shadow: 0 7px 14px rgba(77,43,34,.05); }
.fmpc-download { border-color: #d29b2d !important; background: linear-gradient(135deg, #bd8217, #d9a139 56%, #e9bf65) !important; color: #fff !important; }

.fmpc-disclaimer {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px 19px;
    color: #887773;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

@container (max-width: 1050px) {
    .fmpc-hero { padding-right: 41%; padding-left: 38px; }
    .fmpc-hero h3 { white-space: normal; }
    .fmpc-workspace { grid-template-columns: minmax(300px,.74fr) minmax(440px,1.26fr); }
    .fmpc-moods { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@container (max-width: 820px) {
    .fmpc-hero { min-height: 410px; padding: 34px 34px 210px; text-align: center; }
    .fmpc-hero-copy { max-width: none; }
    .fmpc-hero p { margin-left: auto; margin-right: auto; }
    .fmpc-flourish { margin: 0 auto; }
    .fmpc-hero-image { inset: auto 0 0 0; width: 100%; height: 215px; }
    .fmpc-hero-image::before { background: linear-gradient(180deg,#fff9fa 0%,rgba(255,249,250,.12) 38%,transparent 100%); }
    .fmpc-hero-image img { object-position: center 25%; }
    .fmpc-workspace { grid-template-columns: 1fr; padding: 14px; }
    .fmpc-preview-panel { order: -1; }
}

@container (max-width: 600px) {
    .fmpc-shell { border-radius: 15px; }
    .fmpc-hero { min-height: 385px; padding: 28px 20px 190px; }
    .fmpc-hero h2 { font-size: 34px; }
    .fmpc-hero h3 { font-size: 40px; }
    .fmpc-hero p { font-size: 14px; }
    .fmpc-hero-image { height: 195px; }
    .fmpc-controls, .fmpc-preview-panel { padding: 16px; }
    .fmpc-moods { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fmpc-styles { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fmpc-card { grid-template-columns: 1fr; min-height: auto; }
    .fmpc-card-photo img { min-height: 330px; max-height: 390px; }
    .fmpc-card-copy { padding: 8px 5px 12px; }
    .fmpc-card-copy p { font-size: 15px; }
    .fmpc-actions { grid-template-columns: 1fr 1fr; }
}

@container (max-width: 410px) {
    .fmpc-workspace { padding: 9px; }
    .fmpc-actions { grid-template-columns: 1fr; }
}
