.ecm-wrap{--ecm-ink:#172033;--ecm-muted:#687386;--ecm-accent:#6757e8;--ecm-line:#e8eaf1;max-width:1200px;margin:32px auto;color:var(--ecm-ink);font-family:inherit}.ecm-wrap *{box-sizing:border-box}.ecm-toolbar{display:flex;gap:14px;align-items:center;margin-bottom:26px}.ecm-month,.ecm-search,.ecm-editor input,.ecm-editor textarea,.ecm-editor select{border:1px solid var(--ecm-line);border-radius:12px;padding:13px 15px;background:#fff;color:var(--ecm-ink);font:inherit}.ecm-month{min-width:180px}.ecm-search{flex:1;min-width:180px}.ecm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.ecm-card{overflow:hidden;border:1px solid var(--ecm-line);border-radius:18px;background:#fff;box-shadow:0 8px 28px #1720330c;transition:transform .25s,box-shadow .25s}.ecm-card:hover{transform:translateY(-5px);box-shadow:0 15px 36px #17203318}.ecm-card-image{display:block;width:100%;height:220px;object-fit:cover}.ecm-image-placeholder{height:220px;display:grid;place-items:center;background:linear-gradient(135deg,#e9e7ff,#dcecff);font-weight:800;letter-spacing:4px;color:#6757e8}.ecm-card-body{padding:21px}.ecm-card-date,.ecm-single-date{font-size:13px;font-weight:700;color:var(--ecm-accent);letter-spacing:.02em}.ecm-card h3{font-size:21px;line-height:1.3;margin:9px 0 18px}.ecm-button{display:inline-flex;align-items:center;justify-content:center;background:var(--ecm-accent);color:#fff!important;text-decoration:none!important;padding:12px 19px;border-radius:10px;font-weight:700;border:0;cursor:pointer;transition:filter .2s,transform .2s}.ecm-button:hover{filter:brightness(.92);transform:translateY(-1px)}.ecm-empty{color:var(--ecm-muted);padding:20px}.ecm-no-results{text-align:center}.ecm-carousel-heading,.ecm-calendar-head,.ecm-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.ecm-carousel-heading h2,.ecm-editor-heading h2{font-size:28px;margin:0 0 18px}.ecm-carousel-track{display:flex;gap:22px;overflow-x:auto;scroll-behavior:smooth;padding:4px 2px 18px;scroll-snap-type:x mandatory}.ecm-carousel-track .ecm-card{flex:0 0 min(340px,82vw);scroll-snap-align:start}.ecm-arrow{width:42px;height:42px;border:1px solid var(--ecm-line);border-radius:50%;background:#fff;color:var(--ecm-ink);font-size:27px;line-height:1;cursor:pointer;margin-left:7px}.ecm-arrow:hover{background:#f2f0ff;color:var(--ecm-accent)}.ecm-calendar{position:relative;border:1px solid var(--ecm-line);border-radius:22px;padding:26px;background:#fff;box-shadow:0 12px 36px #1720330c}.ecm-calendar-head{justify-content:center;margin-bottom:22px}.ecm-cal-title{font-size:27px;min-width:220px;text-align:center;margin:0}.ecm-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.ecm-weekday{text-align:center;padding:12px 4px;color:var(--ecm-muted);font-size:13px;font-weight:800}.ecm-days{display:contents}.ecm-day{min-height:100px;border:1px solid var(--ecm-line);border-radius:12px;padding:10px;text-align:left;background:#fff;color:var(--ecm-ink);cursor:pointer;font:inherit}.ecm-day:hover{border-color:var(--ecm-accent);background:#faf9ff}.ecm-day.is-empty{visibility:hidden;pointer-events:none}.ecm-day-number{font-weight:800}.ecm-day.has-events .ecm-day-number:after{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ecm-accent);margin:0 0 2px 7px}.ecm-day-preview{display:block;font-size:11px;color:var(--ecm-accent);margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ecm-event-popover{position:absolute;z-index:5;top:90px;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 30px));max-height:65%;overflow:auto;background:#fff;border:1px solid var(--ecm-line);border-radius:18px;box-shadow:0 20px 60px #10182b30;padding:24px}.ecm-popover-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:27px;cursor:pointer}.ecm-popover-item{display:flex;gap:13px;padding:13px 0;border-bottom:1px solid var(--ecm-line)}.ecm-popover-item img{width:76px;height:66px;object-fit:cover;border-radius:9px}.ecm-popover-item a{font-weight:800;color:var(--ecm-ink);text-decoration:none}.ecm-popover-item small{display:block;color:var(--ecm-muted);margin-top:5px}.ecm-editor{background:#fff;border:1px solid var(--ecm-line);border-radius:20px;padding:28px;box-shadow:0 12px 35px #1720330c}.ecm-editor-heading{display:block;margin-bottom:22px}.ecm-editor-heading p{color:var(--ecm-muted);margin:0}.ecm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}.ecm-form-grid label{display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:14px}.ecm-form-grid .ecm-full{grid-column:1/-1}.ecm-form-grid input,.ecm-form-grid textarea,.ecm-form-grid select{width:100%;font-weight:400}.ecm-managed{margin-top:32px}.ecm-managed ul{list-style:none;margin:0;padding:0}.ecm-managed li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--ecm-line)}.ecm-managed a{font-weight:700}.ecm-managed span{color:var(--ecm-muted)}.ecm-success,.ecm-notice{padding:15px 18px;border-radius:12px;background:#effaf2;color:#176b35;margin-bottom:18px}.ecm-single{max-width:1000px}.ecm-single-image{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:22px;margin-bottom:28px}.ecm-single-content{max-width:850px;margin:auto}.ecm-single h1{font-size:clamp(30px,5vw,48px);line-height:1.12;margin:12px 0 20px}.ecm-description{font-size:17px;line-height:1.75}.ecm-detail-row{display:flex;gap:22px;padding:15px 0;border-top:1px solid var(--ecm-line)}.ecm-detail-row strong{min-width:110px}.ecm-video{margin-top:25px}.ecm-video iframe{max-width:100%}@media(max-width:850px){.ecm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ecm-day{min-height:78px;padding:7px}.ecm-day-preview{font-size:10px}}@media(max-width:600px){.ecm-toolbar{flex-direction:column;align-items:stretch}.ecm-month{width:100%}.ecm-grid{grid-template-columns:1fr}.ecm-card-image,.ecm-image-placeholder{height:210px}.ecm-calendar{padding:12px}.ecm-calendar-grid{gap:4px}.ecm-day{min-height:62px;padding:5px;border-radius:8px}.ecm-weekday{font-size:11px;padding:7px 1px}.ecm-day-preview{display:none}.ecm-form-grid{grid-template-columns:1fr}.ecm-form-grid .ecm-full{grid-column:auto}.ecm-detail-row{display:block}.ecm-detail-row strong{display:block;margin-bottom:5px}.ecm-cal-title{min-width:160px;font-size:21px}}

/* Frontend event management dashboard */
.ecm-dashboard{max-width:1320px}.ecm-dashboard .ecm-editor-heading{display:flex;align-items:center;margin-bottom:26px}.ecm-eyebrow{display:inline-block;color:var(--ecm-accent);font-size:11px;font-weight:900;letter-spacing:.16em;margin-bottom:8px}.ecm-dashboard .ecm-editor-heading h2{margin:0 0 7px}.ecm-new-event{white-space:nowrap}.ecm-dashboard-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(480px,1.35fr);gap:24px;align-items:start}.ecm-dashboard-form,.ecm-dashboard-list{min-width:0;border:1px solid var(--ecm-line);border-radius:17px;padding:22px;background:#fff}.ecm-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.ecm-section-heading h3{font-size:20px;margin:0 0 5px}.ecm-section-heading p{font-size:13px;color:var(--ecm-muted);margin:0}.ecm-text-link,.ecm-action-link{font-size:13px;font-weight:800;color:var(--ecm-accent);text-decoration:none}.ecm-image-help{font-size:12px;color:var(--ecm-muted);font-weight:400}.ecm-image-preview{display:flex;align-items:center;justify-content:center;min-height:130px;border:1px dashed #cfd3e1;border-radius:12px;background:#f8f9fc;overflow:hidden}.ecm-image-preview img{display:block;max-width:100%;max-height:240px;object-fit:contain}.ecm-preview-empty{color:var(--ecm-muted);font-size:13px;font-weight:500}.ecm-event-table-wrap{width:100%;overflow-x:auto}.ecm-event-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.ecm-event-table th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--ecm-muted);padding:11px 9px;border-bottom:1px solid var(--ecm-line)}.ecm-event-table td{padding:13px 9px;border-bottom:1px solid var(--ecm-line);vertical-align:middle}.ecm-admin-event{display:flex;align-items:center;gap:10px;min-width:150px}.ecm-admin-event img,.ecm-admin-placeholder{width:48px;height:42px;border-radius:8px;object-fit:cover;flex:0 0 auto}.ecm-admin-placeholder{display:grid;place-items:center;background:#eeecff;color:var(--ecm-accent);font-size:11px;font-weight:900}.ecm-admin-event strong{font-size:13px;line-height:1.35}.ecm-status{display:inline-block;padding:5px 8px;border-radius:20px;background:#f0f1f5;color:#596273;font-size:11px;font-weight:800;white-space:nowrap}.ecm-status-publish{background:#e9f8ef;color:#167343}.ecm-status-draft{background:#f0f1f5;color:#596273}.ecm-status-pending{background:#fff4dc;color:#96620b}.ecm-status-private{background:#f0eaff;color:#6941a5}.ecm-row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ecm-delete-form{display:inline;margin:0}.ecm-delete-link{padding:0;border:0;background:none;color:#bd3444;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.ecm-table-empty{text-align:center;color:var(--ecm-muted);padding:28px!important}.ecm-error{padding:14px 17px;border-radius:12px;background:#fff0f0;color:#a32332;margin-bottom:18px}
@media(max-width:1000px){.ecm-dashboard-layout{grid-template-columns:1fr}.ecm-dashboard-form,.ecm-dashboard-list{padding:18px}}
@media(max-width:600px){.ecm-dashboard .ecm-editor-heading{align-items:flex-start;flex-direction:column}.ecm-new-event{width:100%}.ecm-dashboard-form,.ecm-dashboard-list{padding:14px}.ecm-event-table{min-width:580px}}


/* Version 1.2.0: configurable event colors and full-screen calendar details */
.ecm-card-date,.ecm-single-date,.ecm-modal-meta{color:var(--ecm-date-color,var(--ecm-accent))!important}
.ecm-card .ecm-button{background:var(--ecm-button-color,var(--ecm-accent))!important}
.ecm-event-popover[hidden]{display:none!important}
.ecm-event-popover:not([hidden]){
  position:fixed;inset:0;z-index:999999;width:100vw;height:100vh;max-height:none;
  transform:none;top:0;left:0;margin:0;padding:clamp(22px,4vw,56px);
  overflow-y:auto;border:0;border-radius:0;background:#fff;
  box-shadow:none;
}
.ecm-popover-close{
  position:fixed;top:18px;right:22px;z-index:2;width:48px;height:48px;
  display:grid;place-items:center;border-radius:50%;background:#f1f2f6;
  color:#172033;font-size:32px;line-height:1;
}
.ecm-popover-content{max-width:1050px;margin:20px auto 60px}
.ecm-modal-date{font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ecm-date-color,var(--ecm-accent))}
.ecm-modal-heading{font-size:clamp(30px,4vw,46px);margin:8px 0 28px;color:#172033}
.ecm-modal-event{display:grid;grid-template-columns:minmax(220px, .8fr) minmax(0,1.2fr);gap:28px;padding:24px 0;border-top:1px solid var(--ecm-line)}
.ecm-modal-image{width:100%;height:260px;object-fit:cover;border-radius:16px}
.ecm-modal-event-body h3{font-size:26px;margin:0 0 8px}
.ecm-modal-event-body p{line-height:1.6}
.ecm-modal-meta{font-weight:800}
.ecm-modal-description{font-size:16px;line-height:1.75;white-space:normal}
.ecm-modal-event-body a{color:var(--ecm-accent);font-weight:700}
body.ecm-modal-open{overflow:hidden}
body.single-ecm_event .sharedaddy,
body.single-ecm_event .sd-sharing,
body.single-ecm_event .jp-sharing,
body.single-ecm_event .addtoany_share_save_container,
body.single-ecm_event .heateor_sss_sharing_container,
body.single-ecm_event .share-buttons,
body.single-ecm_event .post-share,
body.single-ecm_event .entry-share,
body.single-ecm_event .social-share,
body.single-ecm_event .wp-block-social-links{display:none!important}
@media(max-width:650px){
  .ecm-modal-event{grid-template-columns:1fr;gap:16px}
  .ecm-modal-image{height:210px}
  .ecm-event-popover:not([hidden]){padding:72px 18px 24px}
  .ecm-popover-close{top:12px;right:14px}
}
