.download-certificate {
  background: #71342e;
  color: #fff;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.modal-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.modal-actions > button {
  border: 0;
  background: #f2e7de;
  height: 38px;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
}

.modal-actions > button:last-child {
  width: 38px;
  border-radius: 50%;
  font-size: 24px;
  padding: 0;
}

.modal-actions .delete-event {
  background: #fff0ed;
  color: #a23b32;
  border: 1px solid #edc7c2;
}

@media (max-width: 640px) {
  .result-card .download-certificate { width: 100%; }
  .modal-actions { align-items: flex-end; flex-direction: column-reverse; }
}

.event-create-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fffaf5;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(58, 24, 20, .25);
  display: grid;
  gap: 10px;
}
.event-create-dialog header { display:flex; justify-content:space-between; gap:20px; margin-bottom:8px; }
.event-create-dialog header small { color:#f08a61; font-weight:800; letter-spacing:2px; }
.event-create-dialog header h2 { font-family:Georgia,serif; font-size:32px; margin:4px 0; }
.event-create-dialog header p { color:#876e64; }
.event-create-dialog header > button { border:0; background:#f2e7de; width:38px; height:38px; border-radius:50%; font-size:24px; cursor:pointer; }
.event-create-dialog label { font-size:12px; font-weight:800; margin-top:8px; }
.event-create-dialog input { width:100%; height:50px; border:1px solid #dfc5b5; border-radius:10px; background:#fff; padding:0 14px; font:inherit; }
.create-event-submit { margin-top:12px; height:52px; border:0; border-radius:10px; background:#7d3730; color:#fff; font-weight:800; cursor:pointer; }
.create-event-submit:disabled { opacity:.65; cursor:wait; }
.event-form-error { background:#fff0ed; border:1px solid #edc7c2; color:#a23b32; padding:12px; border-radius:9px; font-size:13px; }
.empty-events, .upload-empty { padding:34px; text-align:center; color:#876e64; }
.upload-empty { background:#fff; border:1px solid #ead8cc; border-radius:16px; }
.upload-empty h3 { color:#3f201d; margin-bottom:8px; }
.batch-progress { height:8px; overflow:hidden; border-radius:999px; background:#ead8cc; margin-top:12px; }
.batch-progress span { display:block; height:100%; border-radius:inherit; background:#2e8b57; transition:width .25s ease; }
.upload-results i.sending { background:#fff3d8; color:#9a6811; animation:upload-spin 1s linear infinite; }
@keyframes upload-spin { to { transform:rotate(360deg); } }
.card-art.has-cover:before,.card-art.has-cover:after { display:none; }
.card-art > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cover-editor { display:grid; grid-template-columns:180px 1fr; gap:18px; padding:18px 26px; background:#fff8f2; border-bottom:1px solid #ead9cc; }
.cover-preview { height:105px; border-radius:12px; overflow:hidden; background:linear-gradient(135deg,#7d3730,#ed8b62); display:grid; place-items:center; color:#fff; font-size:10px; letter-spacing:1.5px; }
.cover-preview img { width:100%; height:100%; object-fit:cover; }
.cover-editor b { font-family:Georgia,serif; font-size:18px; }
.cover-editor p { font-size:12px; color:#806e65; margin:7px 0 11px; }
.cover-editor small { display:block; color:#a23b32; margin-bottom:8px; }
.cover-editor > div:last-child > div { display:flex; gap:8px; }
.cover-upload,.cover-editor button { border:1px solid #d7b9aa; background:#fff; color:#71342e; border-radius:9px; padding:9px 13px; font-size:12px; font-weight:700; cursor:pointer; }
.cover-upload { background:#71342e; color:#fff; border-color:#71342e; }
.cover-upload input { display:none; }
@media(max-width:640px){.cover-editor{grid-template-columns:1fr}.cover-preview{height:150px}}
.certificate-help { max-width:980px; margin:32px auto 0; padding:22px 24px; border:1px solid #dec6b4; border-radius:18px; background:#fffaf4; display:flex; align-items:center; gap:18px; text-align:left; box-shadow:0 12px 32px rgba(76,38,27,.08); }
.certificate-help > span { flex:0 0 46px; height:46px; border-radius:50%; display:grid; place-items:center; background:#f2d7c4; color:#71342e; font:bold 22px Georgia,serif; }
.certificate-help > div { flex:1; }
.certificate-help h3 { margin:0 0 5px; font-size:20px; }
.certificate-help p { margin:0; color:#806b62; font-size:13px; line-height:1.55; }
.certificate-help > a { flex:0 0 auto; padding:13px 18px; border-radius:10px; background:#238b57; color:#fff; font-size:13px; font-weight:800; }
.certificate-help > a:hover { background:#197548; transform:translateY(-1px); }
@media(max-width:720px){.certificate-help{flex-direction:column;text-align:center}.certificate-help > a{width:100%;text-align:center}}
.certificate-actions{display:flex;flex-direction:column;gap:8px;min-width:190px}.email-certificate{border:1px solid #71342e!important;background:#fff!important;color:#71342e!important;padding:11px 14px!important}.email-modal{position:fixed;inset:0;z-index:100;background:rgba(39,20,17,.68);display:grid;place-items:center;padding:18px}.email-modal form{position:relative;width:min(460px,100%);background:#fffaf5;border-radius:22px;padding:32px;box-shadow:0 30px 90px rgba(29,11,9,.3);display:flex;flex-direction:column}.email-close{position:absolute;right:18px;top:16px;width:36px;height:36px;border:0;border-radius:50%;background:#f2e7de;font-size:24px;cursor:pointer}.email-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:#f3d7c5;color:#71342e;font-size:22px;margin-bottom:16px}.email-modal form>small:not(.email-privacy){color:#b35a46;letter-spacing:1.6px;font-weight:800}.email-modal h2{font:32px Georgia,serif;margin:7px 0}.email-modal p{color:#806d65;font-size:13px;line-height:1.55}.email-modal label{font-size:12px;font-weight:800;margin:12px 0 7px}.email-modal input{height:52px;border:1px solid #d9c3b5;border-radius:11px;padding:0 14px;font:inherit}.email-submit{height:52px;border:0;border-radius:11px;background:#71342e;color:#fff;font-weight:800;margin-top:14px}.email-submit:disabled{opacity:.7}.email-success,.email-error{margin-top:12px;padding:11px;border-radius:9px;font-size:12px}.email-success{background:#e9f7ed;color:#247044}.email-error{background:#fff0ed;color:#a23b32}.email-privacy{text-align:center;color:#907d74;margin-top:12px}.result-card .certificate-actions{flex:0 0 auto}@media(max-width:720px){.result-card{flex-wrap:wrap}.certificate-actions{width:100%}.certificate-actions a,.certificate-actions button{width:100%;text-align:center}}
.form-message.success{color:#247044!important}.form-message.error{color:#a23b32!important}.users-list h2 small{display:inline-grid;place-items:center;min-width:27px;height:27px;border-radius:50%;background:#f0ddd1;color:#71342e;font:700 12px Arial;margin-left:6px}.no-users{text-align:center;padding:26px;color:#806d65}
