.ypcl-app{max-width:1100px;margin:0 auto;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#0f172a}
.ypcl-layout{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:start}
@media(max-width:900px){.ypcl-layout{grid-template-columns:1fr}}
.ypcl-form-panel,.ypcl-preview-panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.15rem 1.25rem;box-shadow:0 1px 2px rgb(0 0 0/.04)}
.ypcl-h{margin:1.2rem 0 .65rem;font-size:.95rem;font-weight:700}
.ypcl-h:first-child{margin-top:0}
.ypcl-help{font-size:.82rem;color:#64748b;margin:0 0 .75rem}
.ypcl-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
@media(max-width:560px){.ypcl-grid-2{grid-template-columns:1fr}}
.ypcl-field{margin-bottom:.65rem}
.ypcl-field label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.3rem;color:#334155}
.ypcl-field .req{color:#dc2626}
.ypcl-field input,.ypcl-field textarea,.ypcl-field select{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:.55rem .7rem;font-size:.95rem;box-sizing:border-box}
.ypcl-field input:focus,.ypcl-field textarea:focus,.ypcl-field select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgb(37 99 235/.15)}
.ypcl-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.1rem;padding-top:1rem;border-top:1px solid #e2e8f0}
.ypcl-btn-primary,.ypcl-btn-secondary{border:none;border-radius:8px;padding:.65rem 1.1rem;font-weight:600;font-size:.9rem;cursor:pointer}
.ypcl-btn-primary{background:#2563eb;color:#fff}
.ypcl-btn-primary:hover{background:#1d4ed8}
.ypcl-btn-secondary{background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0}
.ypcl-status{min-height:1.2rem;font-size:.85rem;color:#475569;margin:.5rem 0 0}
.ypcl-status.is-error{color:#b91c1c}
.ypcl-status.is-ok{color:#047857}
.ypcl-preview-toolbar{margin-bottom:.75rem}
.ypcl-preview-frame{border:1px solid #e2e8f0;border-radius:8px;background:#fff;min-height:420px;padding:1.25rem;overflow:auto;max-height:80vh}
.ypcl-placeholder{color:#94a3b8;text-align:center;margin-top:4rem}
