
.jjf-wrap {
    --jjf-yellow: #f6c600;
    --jjf-green: #087b3b;
    --jjf-blue: #123a7a;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(280px, 520px);
    gap: 24px;
    align-items: start;
    max-width: 1040px;
    margin: 32px auto;
    font-family: inherit;
}
.jjf-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 32, 70, .12);
    border: 1px solid rgba(0, 59, 122, .08);
    overflow: hidden;
}
.jjf-form-card { padding: 26px; border-top: 8px solid var(--jjf-yellow); }
.jjf-brand { max-width: 240px; margin-bottom: 10px; }
.jjf-brand img { display: block; max-width: 100%; height: auto; }
.jjf-form-card h2 { margin: 0 0 8px; color: var(--jjf-blue); font-size: clamp(26px, 3vw, 36px); line-height: 1.05; font-weight: 900; }
.jjf-intro { color: #335; margin: 0 0 22px; line-height: 1.5; }
.jjf-form { display: grid; gap: 16px; }
.jjf-field { display: grid; gap: 7px; }
.jjf-field label { font-weight: 800; color: var(--jjf-blue); }
.jjf-field input[type="text"], .jjf-field input[type="file"] { width: 100%; box-sizing: border-box; border: 2px solid rgba(0, 59, 122, .14); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; }
.jjf-field input[type="text"]:focus, .jjf-field input[type="file"]:focus { outline: none; border-color: var(--jjf-green); box-shadow: 0 0 0 4px rgba(8,123,59,.12); }
.jjf-field small { color: #667; line-height: 1.35; }
.jjf-consent { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; font-size: 14px; color: #334; background: #f7fafc; border-radius: 14px; padding: 12px; }
.jjf-consent input { margin-top: 3px; }
.jjf-actions, .jjf-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jjf-actions button, .jjf-result-actions button { appearance: none; border: 0; border-radius: 999px; padding: 13px 18px; font: inherit; font-weight: 900; cursor: pointer; transition: transform .16s ease, opacity .16s ease; }
.jjf-generate { background: var(--jjf-green); color: #fff; box-shadow: 0 10px 24px rgba(8,123,59,.22); }
.jjf-download, .jjf-share { background: var(--jjf-blue); color: #fff; }
.jjf-actions button:hover:not(:disabled), .jjf-result-actions button:hover:not(:disabled) { transform: translateY(-1px); }
.jjf-actions button:disabled, .jjf-result-actions button:disabled { cursor: not-allowed; opacity: .45; }
.jjf-progress { display: grid; gap: 8px; }
.jjf-progress-bar { height: 12px; border-radius: 999px; background: #e7edf6; overflow: hidden; }
.jjf-progress-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--jjf-green), var(--jjf-yellow)); transition: width .35s ease; border-radius: 999px; }
.jjf-progress-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--jjf-blue); font-size: 14px; }
.jjf-progress-label { font-weight: 700; }
.jjf-progress-value { font-weight: 900; }
.jjf-status { min-height: 22px; margin: 0; color: var(--jjf-blue); font-weight: 700; }
.jjf-status.is-error { color: #a31717; }
.jjf-result-card { position: sticky; top: 24px; min-height: 560px; display: grid; gap: 16px; justify-items: center; align-content: center; background: radial-gradient(circle at 20% 10%, rgba(246, 198, 0, .22), transparent 30%), radial-gradient(circle at 80% 20%, rgba(8, 123, 59, .18), transparent 28%), linear-gradient(135deg, #e9fbff, #fff8e8); padding: 20px; }
.jjf-preview-placeholder { text-align: center; color: var(--jjf-blue); max-width: 300px; }
.jjf-preview-placeholder strong { display: block; font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
.jjf-preview-placeholder span { color: #526; line-height: 1.4; }
.jjf-preview-image { display: block; width: min(100%, 420px); height: auto; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,32,70,.22); }
.jjf-result-actions { justify-content: center; }
.jjf-wrap.is-loading .jjf-result-card::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.72); backdrop-filter: blur(2px); }
@media (max-width: 860px) {
    .jjf-wrap { grid-template-columns: 1fr; margin: 20px auto; }
    .jjf-result-card { position: relative; top: auto; min-height: 380px; }
}
