* { box-sizing: border-box; margin: 0; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f5f7; color: #1c1e21; padding: 20px; }
a { color: #0b57d0; }
h1 { font-size: 22px; margin-bottom: 12px; }
h2 { font-size: 17px; margin: 18px 0 10px; }
p, li { line-height: 1.5; }
ul { padding-left: 20px; }
.ep-center { display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; padding-top: 6vh; }
.ep-card { background: #fff; border: 1px solid #e2e4e8; border-radius: 10px; padding: 28px; max-width: 460px; width: 100%; }
.ep-card-wide { max-width: 720px; }
.ep-wrap { max-width: 980px; margin: 0 auto; }
.ep-topbar { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e2e4e8; border-radius: 10px; padding: 12px 18px; margin-bottom: 16px; }
.ep-panel { background: #fff; border: 1px solid #e2e4e8; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.ep-muted { color: #65676b; font-size: 13px; margin-top: 14px; }
.ep-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.ep-ok { background: #e6f4ea; color: #137333; border: 1px solid #c8e6c9; border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.ep-warn { background: #fef7e0; color: #7a5b00; border: 1px solid #f3e3a2; border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 4px; }
input[type=text], input[type=url], select, textarea { width: 100%; border: 1px solid #ccd0d5; border-radius: 6px; padding: 9px 10px; font: inherit; }
textarea { min-height: 260px; font-family: Consolas, monospace; font-size: 13px; }
.ep-btn { display: inline-block; background: #0b57d0; color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.ep-btn-secondary { background: #e4e6eb; color: #1c1e21; }
.ep-btn-danger { background: #b3261e; }
.ep-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ep-table th, .ep-table td { border-bottom: 1px solid #e2e4e8; padding: 9px 8px; text-align: left; vertical-align: top; }
.ep-badge { display: inline-block; border-radius: 10px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.ep-badge-0 { background: #e4e6eb; }
.ep-badge-1 { background: #fef7e0; color: #7a5b00; }
.ep-badge-2 { background: #e6f4ea; color: #137333; }
.ep-badge-3 { background: #e4e6eb; color: #65676b; }
.ep-badge-4 { background: #fdecea; color: #b3261e; }
.ep-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.ep-countries label { font-weight: 400; margin: 0; }
.ep-editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #f0f1f3; border: 1px solid #ccd0d5; border-bottom: none; border-radius: 6px 6px 0 0; margin-top: 4px; }
.ep-editor-toolbar button { padding: 4px 10px; background: #fff; border: 1px solid #ccd0d5; border-radius: 4px; color: #1c1e21; cursor: pointer; font: inherit; font-size: 13px; }
.ep-editor-toolbar button:hover { background: #e4e6eb; }
.ep-editor-toolbar button:disabled { opacity: .5; cursor: default; }
#bodyField { border-radius: 0 0 6px 6px; }
.ep-preview { border: 1px solid #ccd0d5; border-top: none; border-radius: 0 0 6px 6px; padding: 14px; min-height: 220px; background: #fff; line-height: 1.7; }
.ep-preview img { max-width: 100%; height: auto; }
.ep-preview h2 { font-size: 20px; margin: 16px 0 8px; }
.ep-preview h3 { font-size: 17px; margin: 14px 0 6px; }
.ep-preview p { margin: 0 0 12px; }
