.kce-wrap{
  --kce-accent:var(--kce-primary,#13a8a4);
  --kce-accent-dark:#0d5558;
  --kce-accent-soft:#dff7f6;
  --kce-text:#14243a;
  --kce-muted:#607083;
  --kce-line:#dbe7ee;
  --kce-bg:#f7fafb;
  font-family:Heebo,Arial,sans-serif;
  color:var(--kce-text);
  max-width:1320px;
  margin:0 auto;
  padding:18px;
  direction:rtl;
  box-sizing:border-box;
}
.kce-wrap *{box-sizing:border-box}
.kce-shell{
  background:linear-gradient(180deg,#ffffff 0%,#fbfefe 100%);
  border:1px solid var(--kce-line);
  border-radius:28px;
  padding:22px;
  box-shadow:0 18px 48px rgba(22,54,72,.10);
  overflow:hidden;
}
.kce-toolbar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  background:#fff;
  border:1px solid #dce9ee;
  border-radius:24px;
  padding:14px 18px;
  margin-bottom:20px;
  box-shadow:0 10px 26px rgba(20,41,61,.08);
}
.kce-toolbar h3{
  margin:0;
  font-size:clamp(30px,4vw,44px);
  line-height:1;
  color:var(--kce-accent-dark);
  font-weight:900;
  letter-spacing:.01em;
  text-align:center;
}
.kce-nav{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  min-width:98px;
  height:54px;
  border:1px solid #d5e4ea;
  border-radius:16px;
  background:#fff;
  color:var(--kce-accent-dark);
  cursor:pointer;
  font-weight:900;
  font-family:inherit;
  padding:0 14px;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
}
.kce-nav:first-child{justify-self:start}
.kce-nav:last-child{justify-self:end}
.kce-nav span{
  font-size:34px;
  line-height:1;
  transform:translateY(-1px);
}
.kce-nav small{font-size:15px;color:#365064;font-weight:800}
.kce-nav:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--kce-accent) 45%,#d5e4ea);
  background:#f8fefe;
  box-shadow:0 10px 22px rgba(13,85,88,.10);
}
.kce-weekdays,.kce-calendar{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}
.kce-weekdays{
  margin:0 2px 8px;
}
.kce-weekdays span{
  text-align:center;
  font-weight:900;
  color:#22394d;
  padding:4px 2px 8px;
  font-size:19px;
}
.kce-calendar{align-items:stretch}
.kce-day{
  min-height:142px;
  border:1px solid #dce8ee;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfe 100%);
  padding:12px;
  position:relative;
  overflow:hidden;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease,background .15s ease;
}
.kce-day:hover{
  border-color:color-mix(in srgb,var(--kce-accent) 35%,#dce8ee);
  box-shadow:0 10px 22px rgba(34,72,90,.07);
}
.kce-day.is-muted{
  opacity:.42;
  background:#f6f8fa;
}
.kce-day.has-event{
  background:linear-gradient(180deg,#ffffff 0%,#f7fcfc 100%);
}
.kce-day.is-today::before{
  content:'';
  position:absolute;
  inset:6px;
  border:2px solid color-mix(in srgb,var(--kce-accent) 38%,transparent);
  border-radius:13px;
  pointer-events:none;
}
.kce-day-number{
  position:relative;
  z-index:1;
  font-weight:900;
  color:#32455b;
  font-size:18px;
  line-height:1;
  margin-bottom:12px;
  text-align:right;
}
.kce-day.is-muted .kce-day-number{color:#7c8795}
.kce-event-chip{
  position:relative;
  z-index:1;
  display:grid;
  gap:5px;
  width:100%;
  min-height:74px;
  border:0;
  text-align:right;
  border-radius:14px;
  padding:12px 14px 10px 10px;
  margin:7px 0;
  background:#fff;
  color:var(--kce-text);
  cursor:pointer;
  font-family:inherit;
  box-shadow:0 8px 18px rgba(18,58,73,.08),inset -5px 0 0 var(--kce-accent);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.kce-event-chip::before{
  content:'';
  position:absolute;
  top:15px;
  right:8px;
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--kce-accent);
  transform:translateX(50%);
}
.kce-event-chip:hover,.kce-event-chip:focus-visible{
  background:#fcffff;
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(18,58,73,.12),inset -5px 0 0 var(--kce-accent);
  outline:none;
}
.kce-chip-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:15px;
  line-height:1.25;
  font-weight:900;
  padding-right:6px;
}
.kce-chip-presenter{
  display:block;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  color:#4e6072;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.kce-chip-label{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  background:var(--kce-accent-soft);
  color:#0d5558;
  padding:5px 10px;
  font-size:12px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.kce-chip-meta{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  color:#42576d;
  font-weight:800;
  font-size:12px;
  margin-top:2px;
  direction:ltr;
}
.kce-loading{
  grid-column:1/-1;
  padding:28px;
  text-align:center;
  color:#48607d;
  border:1px dashed var(--kce-line);
  border-radius:20px;
}
.kce-info-box{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
  margin-top:14px;
  border:1px solid #c9e6ea;
  background:linear-gradient(90deg,#f8fdfe 0%,#edfafa 100%);
  border-radius:18px;
  padding:16px 20px;
  color:#203145;
}
.kce-info-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--kce-accent),#68d5d0);
  color:#fff;
  font-size:24px;
  font-weight:900;
  font-family:Georgia,serif;
}
.kce-info-box p{
  margin:2px 0;
  font-weight:700;
  line-height:1.6;
}
.kce-mobile-events{display:none}
.kce-drawer{
  position:fixed;
  inset:0;
  z-index:99999;
  pointer-events:none;
  opacity:0;
  transition:.2s ease;
}
.kce-drawer.is-open{pointer-events:auto;opacity:1}
.kce-drawer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,17,32,.44);
  backdrop-filter:blur(4px);
}
.kce-panel{
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  width:min(560px,94vw);
  background:#fff;
  border-radius:30px 0 0 30px;
  padding:28px;
  overflow:auto;
  box-shadow:-18px 0 60px rgba(5,20,45,.22);
  transform:translateX(105%);
  transition:.25s ease;
}
.kce-drawer.is-open .kce-panel{transform:translateX(0)}
.kce-close{
  position:absolute;
  top:18px;
  left:18px;
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:#f1f7f8;
  color:#24364d;
  font-size:28px;
  cursor:pointer;
}
.kce-panel-image{
  width:100%;
  height:190px;
  object-fit:cover;
  border-radius:22px;
  margin:18px 0 16px;
  background:#f3f7fc;
}
.kce-event-detail{
  border:1px solid #dce8ee;
  border-radius:24px;
  padding:22px;
  margin-top:26px;
  background:linear-gradient(180deg,#fff,#fbfefe);
  box-shadow:0 10px 26px rgba(22,54,72,.08),inset -6px 0 0 var(--kce-accent);
}
.kce-panel h3,.kce-event-detail h3{
  font-size:clamp(26px,4vw,34px);
  line-height:1.15;
  margin:8px 0 8px;
  font-weight:900;
  color:#0b1f3a;
  padding-left:42px;
}
.kce-panel .kce-date,.kce-event-detail .kce-date{
  font-weight:900;
  color:var(--kce-accent-dark);
  margin-bottom:10px;
  font-size:17px;
}
.kce-presenter{
  color:#44576d;
  font-size:17px;
  font-weight:800;
  margin:0 0 10px;
}
.kce-badge{
  display:inline-flex;
  max-width:100%;
  border-radius:999px;
  background:var(--kce-accent-soft);
  color:#0d5558;
  border:1px solid #c5eeec;
  padding:9px 14px;
  font-weight:900;
  margin:4px 0 14px;
}
.kce-detail-meta{
  display:flex;
  gap:12px;
  align-items:center;
  color:#44576d;
  font-size:17px;
  font-weight:800;
  margin:4px 0 16px;
}
.kce-content{
  color:#425974;
  line-height:1.75;
  font-size:16px;
}
.kce-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:18px;
  background:#f8fbfc;
  border:1px solid #dce8ee;
  border-radius:22px;
  padding:18px;
}
.kce-form label{
  display:grid;
  gap:6px;
  font-weight:800;
  color:#21364f;
}
.kce-form label:nth-of-type(5),
.kce-form label:nth-of-type(6),
.kce-form .kce-check,
.kce-form .kce-submit,
.kce-form .kce-form-message{grid-column:1/-1}
.kce-form input,.kce-form select{
  height:46px;
  border:1px solid #cfdee5;
  border-radius:14px;
  padding:0 12px;
  background:#fff;
  font:inherit;
  color:#12213a;
}
.kce-form input:focus,.kce-form select:focus{
  outline:3px solid color-mix(in srgb,var(--kce-accent) 25%,transparent);
  border-color:var(--kce-accent);
}
.kce-check{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:flex-start;
  gap:9px;
  font-weight:700!important;
  line-height:1.5;
}
.kce-check input{width:18px;height:18px;margin-top:3px;flex:0 0 auto}
.kce-submit{
  height:54px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,var(--kce-accent),#07978e);
  color:#fff;
  font-weight:900;
  font-size:18px;
  cursor:pointer;
  box-shadow:0 14px 28px color-mix(in srgb,var(--kce-accent) 27%,transparent);
}
.kce-submit:hover{filter:brightness(.98);transform:translateY(-1px)}
.kce-form-message{font-weight:800;line-height:1.5;min-height:22px}
.kce-form-message.is-error{color:#b42318}.kce-form-message.is-success{color:#0f7b42}
.kce-hp{position:absolute!important;right:-9999px!important;opacity:0!important}
@media(max-width:920px){
  .kce-wrap{padding:10px}
  .kce-shell{border-radius:24px;padding:12px;box-shadow:0 14px 34px rgba(22,54,72,.10)}
  .kce-toolbar{border-radius:20px;padding:10px;margin-bottom:14px;grid-template-columns:58px 1fr 58px;gap:8px}
  .kce-toolbar h3{font-size:34px}
  .kce-nav{min-width:0;width:56px;height:56px;padding:0;justify-content:center;border-radius:15px}
  .kce-nav small{display:none}
  .kce-nav span{font-size:34px}
  .kce-weekdays,.kce-calendar{gap:5px}
  .kce-weekdays span{font-size:15px;padding:2px 0 5px}
  .kce-weekdays span:nth-child(1){font-size:0}.kce-weekdays span:nth-child(1)::after{content:'א';font-size:15px}
  .kce-weekdays span:nth-child(2){font-size:0}.kce-weekdays span:nth-child(2)::after{content:'ב';font-size:15px}
  .kce-weekdays span:nth-child(3){font-size:0}.kce-weekdays span:nth-child(3)::after{content:'ג';font-size:15px}
  .kce-weekdays span:nth-child(4){font-size:0}.kce-weekdays span:nth-child(4)::after{content:'ד';font-size:15px}
  .kce-weekdays span:nth-child(5){font-size:0}.kce-weekdays span:nth-child(5)::after{content:'ה';font-size:15px}
  .kce-weekdays span:nth-child(6){font-size:0}.kce-weekdays span:nth-child(6)::after{content:'ו';font-size:15px}
  .kce-weekdays span:nth-child(7){font-size:0}.kce-weekdays span:nth-child(7)::after{content:'ש';font-size:15px}
  .kce-day{min-height:86px;border-radius:12px;padding:8px 7px}
  .kce-day-number{font-size:18px;margin-bottom:4px;text-align:center}
  .kce-event-chip{min-height:auto;border-radius:10px;padding:6px 8px 7px;margin:3px 0;box-shadow:inset -4px 0 0 var(--kce-accent);gap:3px}
  .kce-event-chip::before{width:6px;height:6px;top:10px;right:6px}
  .kce-chip-title{font-size:11.5px;line-height:1.18;-webkit-line-clamp:2;padding-right:5px}
  .kce-chip-presenter,.kce-chip-label{display:none}
  .kce-chip-meta{font-size:11px;justify-content:center;gap:0}
  .kce-chip-meta .kce-chip-format,.kce-chip-meta .kce-chip-sep{display:none}
  .kce-mobile-events{display:grid;gap:12px;margin-top:14px}
  .kce-mobile-card{
    position:relative;
    border:1px solid #dce8ee;
    background:#fff;
    border-radius:20px;
    padding:18px 20px;
    box-shadow:0 10px 22px rgba(22,54,72,.08),inset -6px 0 0 var(--kce-accent);
  }
  .kce-mobile-card.is-featured{padding-bottom:20px}
  .kce-mobile-date{font-weight:900;color:var(--kce-accent-dark);font-size:17px;margin-bottom:8px}
  .kce-mobile-title{font-size:24px;line-height:1.12;font-weight:900;margin:0 0 8px;color:#0b1f3a}
  .kce-mobile-card:not(.is-featured) .kce-mobile-title{font-size:20px}
  .kce-mobile-presenter{font-weight:800;color:#506176;margin-bottom:9px}
  .kce-mobile-meta{display:flex;align-items:center;gap:10px;color:#44576d;font-weight:800;font-size:17px;margin:12px 0}
  .kce-mobile-card:not(.is-featured) .kce-mobile-meta{font-size:15px;margin:8px 0 0}
  .kce-mobile-register{width:100%;height:54px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--kce-accent),#07978e);color:#fff;font-size:20px;font-weight:900;font-family:inherit;box-shadow:0 14px 28px color-mix(in srgb,var(--kce-accent) 27%,transparent);margin-top:12px}
  .kce-info-box{border-radius:18px;padding:14px 16px;gap:12px;align-items:start}
  .kce-info-icon{width:40px;height:40px;font-size:22px}
  .kce-info-box p{font-size:15px;line-height:1.55}
  .kce-panel{border-radius:26px 26px 0 0;width:auto;left:0;right:0;top:7vh;bottom:0;padding:22px 18px;transform:translateY(105%)}
  .kce-drawer.is-open .kce-panel{transform:translateY(0)}
  .kce-event-detail{margin-top:18px;padding:18px;border-radius:20px}
  .kce-panel h3,.kce-event-detail h3{font-size:26px;padding-left:40px}
  .kce-form{grid-template-columns:1fr;padding:16px}
  .kce-form label{grid-column:1/-1}
}
@media(max-width:520px){
  .kce-wrap{padding:6px}
  .kce-shell{padding:10px;border-radius:20px}
  .kce-toolbar{grid-template-columns:46px 1fr 46px;border-radius:18px;padding:8px}
  .kce-toolbar h3{font-size:28px}
  .kce-nav{width:44px;height:44px;border-radius:12px}
  .kce-nav span{font-size:30px}
  .kce-weekdays,.kce-calendar{gap:4px}
  .kce-day{min-height:74px;border-radius:10px;padding:6px 4px}
  .kce-day-number{font-size:16px}
  .kce-event-chip{padding:5px 6px;margin:2px 0;border-radius:8px}
  .kce-chip-title{font-size:10px}
  .kce-chip-meta{font-size:10px}
  .kce-mobile-title{font-size:22px}
  .kce-mobile-card:not(.is-featured) .kce-mobile-title{font-size:18px}
}

/* v0.1.2 compact desktop layout: fit full calendar above the fold */
@media (min-width:921px){
  .kce-wrap{
    max-width:1080px;
    padding:8px 12px;
  }
  .kce-shell{
    padding:14px;
    border-radius:22px;
    box-shadow:0 12px 34px rgba(22,54,72,.08);
  }
  .kce-toolbar{
    padding:8px 12px;
    margin-bottom:10px;
    border-radius:18px;
    gap:10px;
    box-shadow:0 7px 18px rgba(20,41,61,.06);
  }
  .kce-toolbar h3{
    font-size:clamp(26px,2.7vw,36px);
  }
  .kce-nav{
    min-width:84px;
    height:42px;
    border-radius:12px;
    padding:0 12px;
    gap:7px;
  }
  .kce-nav span{
    font-size:25px;
  }
  .kce-nav small{
    font-size:13px;
  }
  .kce-weekdays,.kce-calendar{
    gap:6px;
  }
  .kce-weekdays{
    margin:0 0 6px;
  }
  .kce-weekdays span{
    font-size:15px;
    padding:2px 2px 5px;
  }
  .kce-day{
    min-height:84px;
    padding:7px;
    border-radius:12px;
  }
  .kce-day-number{
    font-size:15px;
    margin-bottom:5px;
  }
  .kce-day.is-today::before{
    inset:4px;
    border-radius:10px;
  }
  .kce-event-chip{
    min-height:50px;
    padding:7px 11px 6px 8px;
    margin:2px 0;
    border-radius:10px;
    gap:2px;
    box-shadow:0 5px 12px rgba(18,58,73,.07),inset -4px 0 0 var(--kce-accent);
  }
  .kce-event-chip::before{
    top:10px;
    right:6px;
    width:6px;
    height:6px;
  }
  .kce-chip-title{
    font-size:12.5px;
    line-height:1.15;
    -webkit-line-clamp:2;
  }
  .kce-chip-presenter{
    font-size:10.5px;
  }
  .kce-chip-label{
    padding:4px 8px;
    font-size:10.5px;
  }
  .kce-chip-meta{
    font-size:10.5px;
    margin-top:0;
    gap:5px;
  }
  .kce-info-box{
    margin-top:10px;
    border-radius:14px;
    padding:9px 13px;
    gap:12px;
  }
  .kce-info-icon{
    width:32px;
    height:32px;
    font-size:18px;
  }
  .kce-info-box p{
    font-size:13.5px;
    line-height:1.35;
    margin:0;
  }
}


/* v0.1.3 fullscreen modal instead of side drawer */
body.kce-modal-open{overflow:hidden}
.kce-panel{
  position:relative;
  top:auto;
  bottom:auto;
  right:auto;
  left:auto;
  width:min(1120px, calc(100vw - 40px));
  max-height:calc(100vh - 40px);
  margin:20px auto;
  background:#fff;
  border-radius:28px;
  padding:26px;
  overflow:auto;
  box-shadow:0 28px 80px rgba(5,20,45,.28);
  transform:translateY(24px) scale(.98);
  transition:transform .22s ease, opacity .22s ease;
}
.kce-drawer{
  display:grid;
  place-items:center;
}
.kce-drawer.is-open .kce-panel{transform:translateY(0) scale(1)}
.kce-modal-body{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:18px;
  align-items:start;
  margin-top:22px;
}
.kce-event-detail{
  margin-top:0;
  height:100%;
  min-height:100%;
}
.kce-panel .kce-date,.kce-event-detail .kce-date{
  font-size:18px;
}
.kce-panel h3,.kce-event-detail h3{
  font-size:clamp(28px,3vw,40px);
  padding-left:0;
}
.kce-content{
  font-size:17px;
}
.kce-form{
  margin-top:0;
  align-self:start;
  position:sticky;
  top:0;
}
.kce-close{
  top:18px;
  left:18px;
  z-index:3;
}
@media(max-width:920px){
  .kce-drawer{display:block}
  .kce-panel{
    width:calc(100vw - 14px);
    max-height:calc(100vh - 14px);
    margin:7px;
    border-radius:24px;
    padding:18px 14px 16px;
    transform:translateY(18px) scale(.98);
  }
  .kce-modal-body{
    grid-template-columns:1fr;
    gap:14px;
    margin-top:16px;
  }
  .kce-event-detail{padding:16px;border-radius:18px}
  .kce-panel h3,.kce-event-detail h3{font-size:25px;line-height:1.18;padding-left:32px}
  .kce-form{position:static;padding:14px;border-radius:18px}
}
@media(max-width:520px){
  .kce-panel{
    width:calc(100vw - 8px);
    max-height:calc(100vh - 8px);
    margin:4px;
    border-radius:20px;
    padding:12px 10px 12px;
  }
  .kce-close{top:10px;left:10px;width:38px;height:38px;border-radius:12px;font-size:25px}
  .kce-modal-body{margin-top:12px}
  .kce-panel .kce-date,.kce-event-detail .kce-date{font-size:15px;margin-bottom:6px}
  .kce-panel h3,.kce-event-detail h3{font-size:22px;padding-left:26px;margin:6px 0}
  .kce-presenter,.kce-detail-meta,.kce-content{font-size:15px}
}

/* v0.1.4 modal redesign - closer to the generator visual language */
.kce-panel{
  background:linear-gradient(180deg,#f8fbfc 0%,#f4f8fa 100%);
  border:1px solid #dbe7ee;
  overflow:auto;
  overscroll-behavior:contain;
}
.kce-modal-body,
.kce-modal-body > *,
.kce-form,
.kce-form label,
.kce-form-card,
.kce-event-detail{min-width:0}
.kce-modal-body{
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  gap:20px;
  align-items:start;
}
.kce-modal-main,
.kce-modal-aside{min-width:0}
.kce-close{
  background:#eef6f7;
  border:1px solid #dce8ee;
  box-shadow:0 8px 18px rgba(20,41,61,.08);
}
.kce-event-detail{
  border-radius:28px;
  padding:24px 24px 22px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfeff 100%);
  box-shadow:0 14px 32px rgba(22,54,72,.08), inset -6px 0 0 var(--kce-accent);
}
.kce-panel h3,.kce-event-detail h3{
  font-size:clamp(30px,3.1vw,42px);
  line-height:1.16;
  margin:8px 0 10px;
  color:#12243a;
}
.kce-panel .kce-date,.kce-event-detail .kce-date{
  font-size:18px;
  color:var(--kce-accent-dark);
}
.kce-presenter{font-size:16px;margin-bottom:12px}
.kce-badge{
  padding:10px 15px;
  border-radius:999px;
  font-size:14px;
  margin:2px 0 14px;
}
.kce-detail-meta{
  gap:10px;
  flex-wrap:wrap;
  font-size:16px;
  margin:0 0 16px;
}
.kce-detail-meta span{
  display:inline-flex;
  align-items:center;
}
.kce-content{
  font-size:17px;
  line-height:1.8;
  color:#435872;
}
.kce-form-card{
  background:#fff;
  border:1px solid #dce8ee;
  border-radius:28px;
  box-shadow:0 14px 32px rgba(22,54,72,.08);
  padding:22px;
}
.kce-form-card-head{
  margin-bottom:14px;
}
.kce-form-card-head h4{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.1;
  color:#12304a;
  font-weight:900;
}
.kce-form-card-head p{
  margin:0;
  color:#597086;
  font-size:14px;
  line-height:1.55;
  font-weight:700;
}
.kce-form{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  gap:14px;
  margin-top:0;
  position:static;
  box-shadow:none;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.kce-form label{
  gap:7px;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:#21364f;
}
.kce-form input,.kce-form select{
  width:100%;
  max-width:100%;
  height:52px;
  border:1px solid #d4e2e8;
  border-radius:16px;
  padding:0 14px;
  background:#f9fcfd;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.kce-form input::placeholder{color:#8ca0b1}
.kce-form input:focus,.kce-form select:focus{
  background:#fff;
  outline:3px solid color-mix(in srgb,var(--kce-accent) 18%,transparent);
}
.kce-check{
  display:flex!important;
  align-items:flex-start;
  gap:10px;
  border:1px solid #deebef;
  background:#f8fbfc;
  border-radius:16px;
  padding:13px 14px;
  font-size:14px;
  line-height:1.55;
}
.kce-check input{
  width:18px;
  height:18px;
  margin-top:2px;
  flex:0 0 auto;
}
.kce-submit{
  width:100%;
  height:56px;
  border-radius:18px;
  font-size:19px;
  margin-top:2px;
}
.kce-form-message{
  min-height:24px;
  font-size:14px;
}
@media(max-width:920px){
  .kce-panel{
    background:linear-gradient(180deg,#f7fbfc 0%,#f2f8fa 100%);
  }
  .kce-modal-body{
    grid-template-columns:1fr;
    gap:14px;
  }
  .kce-event-detail,
  .kce-form-card{
    border-radius:22px;
    padding:18px;
  }
  .kce-form-card-head h4{font-size:24px}
  .kce-form-card-head p{font-size:13px}
  .kce-panel h3,.kce-event-detail h3{
    font-size:26px;
    padding-left:28px;
  }
  .kce-form{
    grid-template-columns:1fr;
    gap:12px;
  }
  .kce-form input,.kce-form select{height:50px}
}
@media(max-width:520px){
  .kce-panel{
    border-radius:18px;
  }
  .kce-event-detail,
  .kce-form-card{
    padding:14px;
    border-radius:18px;
  }
  .kce-panel h3,.kce-event-detail h3{
    font-size:23px;
    margin:6px 0 8px;
    padding-left:24px;
  }
  .kce-panel .kce-date,.kce-event-detail .kce-date{font-size:15px}
  .kce-badge{font-size:13px;padding:9px 12px}
  .kce-detail-meta,
  .kce-presenter,
  .kce-content{font-size:14px}
  .kce-form-card-head h4{font-size:21px}
  .kce-check{font-size:13px;padding:11px 12px}
  .kce-submit{height:52px;font-size:18px}
}


/* v0.1.5 - Hameholelet visual language + compact mobile event list */
.kce-wrap{
  --mk-primary:#1D4ED8;
  --mk-primary-light:#DBEAFE;
  --mk-accent:#F97316;
  --mk-mint:#34D399;
  --mk-pink:#F472B6;
  --mk-yellow:#FCD34D;
  --mk-bg:#FDFBF7;
  --mk-surface:#FFFFFF;
  --mk-border:#000000;
  --mk-text:#111827;
  --mk-muted:#4B5563;
  --mk-shadow:4px 4px 0 #000000;
  --mk-shadow-hover:2px 2px 0 #000000;
  --mk-radius:16px;
  font-family:Rubik,Heebo,Arial,sans-serif;
  color:var(--mk-text);
  background:transparent;
}
.kce-shell{
  background:var(--mk-surface);
  border:2px solid var(--mk-border);
  border-radius:22px;
  box-shadow:var(--mk-shadow);
}
.kce-toolbar{
  background:#fff;
  border:2px solid var(--mk-border);
  border-radius:18px;
  box-shadow:var(--mk-shadow);
}
.kce-toolbar h3{
  color:var(--mk-text);
  font-weight:1000;
  letter-spacing:-.03em;
}
.kce-nav{
  border:2px solid var(--mk-border);
  border-radius:999px;
  background:#fff;
  box-shadow:2px 2px 0 #000;
  color:var(--mk-text);
}
.kce-nav:hover{
  transform:translate(-1px,-1px);
  box-shadow:var(--mk-shadow-hover);
  background:var(--mk-primary-light);
}
.kce-weekdays span{
  color:var(--mk-text);
  font-weight:1000;
}
.kce-day{
  background:#fff;
  border:2px solid #e5e7eb;
  border-radius:14px;
}
.kce-day:hover{
  border-color:var(--mk-border);
  box-shadow:2px 2px 0 #000;
}
.kce-day-number{
  color:#1f2937;
  font-weight:1000;
}
.kce-day.is-muted{
  background:#f8fafc;
  opacity:.55;
}
.kce-day.is-today::before{
  border:2px dashed var(--mk-accent);
}
.kce-event-chip{
  border:2px solid var(--mk-border);
  background:var(--mk-primary-light);
  box-shadow:2px 2px 0 #000;
}
.kce-event-chip,
.kce-event-chip:hover,
.kce-event-chip:focus-visible{
  box-shadow:2px 2px 0 #000;
}
.kce-event-chip:hover{
  transform:translate(-1px,-1px);
  background:#fff;
}
.kce-event-chip::before{
  background:var(--mk-accent);
}
.kce-chip-label,
.kce-badge{
  background:#D1FAE5;
  color:#064e3b;
  border:2px solid var(--mk-border);
  box-shadow:2px 2px 0 rgba(0,0,0,.12);
}
.kce-info-box{
  border:2px solid var(--mk-border);
  border-radius:18px;
  background:#FFF7ED;
  box-shadow:2px 2px 0 #000;
}
.kce-info-icon{
  background:var(--mk-yellow);
  color:#111827;
  border:2px solid var(--mk-border);
  box-shadow:2px 2px 0 #000;
}

/* Modal in the generator style */
.kce-drawer-backdrop{
  background:rgba(17,24,39,.50);
  backdrop-filter:blur(3px);
}
.kce-panel{
  background:var(--mk-bg);
  background-image:radial-gradient(#cbd5e1 1px,transparent 1px);
  background-size:20px 20px;
  border:3px solid var(--mk-border);
  border-radius:24px;
  box-shadow:10px 10px 0 rgba(0,0,0,.35);
}
.kce-close{
  border:2px solid var(--mk-border);
  border-radius:999px;
  background:#fff;
  box-shadow:2px 2px 0 #000;
  color:var(--mk-text);
  font-weight:1000;
}
.kce-event-detail,
.kce-form-card{
  background:#fff;
  border:2px solid var(--mk-border);
  border-radius:18px;
  box-shadow:var(--mk-shadow);
}
.kce-event-detail{
  background:linear-gradient(180deg,#fff 0%,#eff6ff 100%);
  box-shadow:var(--mk-shadow);
}
.kce-event-detail::before{
  content:'';
  display:block;
  width:58px;
  height:10px;
  background:var(--mk-yellow);
  border:2px solid var(--mk-border);
  border-radius:999px;
  margin-bottom:12px;
}
.kce-panel h3,.kce-event-detail h3{
  color:var(--mk-text);
  font-weight:1000;
  letter-spacing:-.04em;
}
.kce-panel .kce-date,.kce-event-detail .kce-date{
  color:var(--mk-primary);
  font-weight:1000;
}
.kce-form-card-head h4{
  color:var(--mk-text);
  font-weight:1000;
}
.kce-form-card-head p,
.kce-content,
.kce-presenter{
  color:var(--mk-muted);
}
.kce-form label{
  color:var(--mk-text);
  font-weight:900;
}
.kce-form input,
.kce-form select{
  border:2px solid var(--mk-border);
  background:#fff;
  border-radius:12px;
  box-shadow:2px 2px 0 rgba(0,0,0,.10);
}
.kce-form input:focus,
.kce-form select:focus{
  outline:none;
  border-color:var(--mk-primary);
  box-shadow:4px 4px 0 var(--mk-primary-light);
}
.kce-check{
  border:2px solid var(--mk-border);
  background:#fff;
  border-radius:14px;
  box-shadow:2px 2px 0 rgba(0,0,0,.10);
}
.kce-submit,
.kce-mobile-register{
  background:var(--mk-pink)!important;
  color:#111827!important;
  border:2px solid var(--mk-border)!important;
  border-radius:999px!important;
  box-shadow:var(--mk-shadow)!important;
  font-weight:1000!important;
}
.kce-submit:hover,
.kce-mobile-register:hover{
  transform:translate(-1px,-1px);
  box-shadow:var(--mk-shadow-hover)!important;
}

/* Mobile: shrink the messages/cards below the calendar */
@media(max-width:920px){
  .kce-wrap{padding:6px;max-width:100%}
  .kce-shell{border-radius:18px;padding:8px;box-shadow:3px 3px 0 #000}
  .kce-toolbar{border-radius:16px;padding:7px;margin-bottom:10px;box-shadow:2px 2px 0 #000}
  .kce-toolbar h3{font-size:25px}
  .kce-nav{width:42px;height:42px;box-shadow:2px 2px 0 #000}
  .kce-weekdays,.kce-calendar{gap:4px}
  .kce-weekdays span{font-size:13px;padding:1px 0 4px}
  .kce-day{min-height:66px;border-radius:12px;padding:5px 4px;border-width:2px}
  .kce-day-number{font-size:15px;margin-bottom:2px}
  .kce-event-chip{min-height:34px;max-height:42px;padding:4px 6px;margin:2px 0 0;border-radius:10px;border-width:2px;box-shadow:1.5px 1.5px 0 #000;overflow:hidden}
  .kce-event-chip::before{display:none}
  .kce-chip-title{font-size:9.5px;line-height:1.05;-webkit-line-clamp:2;padding:0}
  .kce-chip-meta{font-size:9px;line-height:1;margin:0}

  .kce-mobile-events{display:grid;gap:8px;margin-top:10px}
  .kce-mobile-card,.kce-mobile-card.is-featured{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"date date" "title btn" "meta tag";
    align-items:center;
    column-gap:8px;
    row-gap:4px;
    min-height:0;
    padding:10px 12px!important;
    border:2px solid var(--mk-border);
    border-radius:16px;
    background:#fff;
    box-shadow:3px 3px 0 #000;
    inset:auto!important;
  }
  .kce-mobile-card::before{
    content:'';
    width:9px;height:9px;border-radius:999px;background:var(--mk-accent);
    position:absolute;top:12px;right:12px;border:1.5px solid #000;
  }
  .kce-mobile-date{grid-area:date;font-size:12px!important;line-height:1.1;margin:0 18px 0 0!important;color:var(--mk-primary)!important;font-weight:1000!important}
  .kce-mobile-title,.kce-mobile-card:not(.is-featured) .kce-mobile-title{
    grid-area:title;font-size:15px!important;line-height:1.15!important;margin:0!important;color:var(--mk-text)!important;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .kce-mobile-presenter{display:none!important}
  .kce-mobile-card .kce-badge{
    grid-area:tag;justify-self:end;font-size:10px!important;line-height:1!important;padding:5px 8px!important;margin:0!important;
    max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-shadow:1.5px 1.5px 0 rgba(0,0,0,.16);
  }
  .kce-mobile-meta,.kce-mobile-card:not(.is-featured) .kce-mobile-meta{
    grid-area:meta;font-size:12px!important;margin:0!important;gap:5px!important;color:var(--mk-muted)!important;
  }
  .kce-mobile-register{grid-area:btn;width:auto!important;height:34px!important;min-width:82px;margin:0!important;padding:0 13px!important;font-size:13px!important;box-shadow:2px 2px 0 #000!important}
  .kce-info-box{margin-top:8px;padding:9px 10px;border-radius:14px;gap:8px}
  .kce-info-icon{width:28px;height:28px;font-size:16px}
  .kce-info-box p{font-size:12px;line-height:1.35}

  .kce-panel{width:calc(100vw - 12px);max-height:calc(100vh - 12px);margin:6px;border-radius:18px;padding:12px;box-shadow:5px 5px 0 rgba(0,0,0,.32)}
  .kce-event-detail,.kce-form-card{border-radius:16px;box-shadow:3px 3px 0 #000}
  .kce-form{gap:10px}
  .kce-form input,.kce-form select{height:46px}
}
@media(max-width:520px){
  .kce-wrap{padding:4px}
  .kce-shell{padding:7px;border-radius:16px}
  .kce-toolbar h3{font-size:22px}
  .kce-day{min-height:58px;padding:4px 3px;border-radius:10px}
  .kce-day-number{font-size:14px}
  .kce-event-chip{min-height:30px;max-height:36px;padding:3px 5px}
  .kce-chip-title{font-size:8.7px}
  .kce-chip-meta{font-size:8.5px}
  .kce-mobile-events{gap:7px;margin-top:8px}
  .kce-mobile-card,.kce-mobile-card.is-featured{padding:9px 10px!important;border-radius:14px}
  .kce-mobile-title,.kce-mobile-card:not(.is-featured) .kce-mobile-title{font-size:14px!important}
  .kce-mobile-register{height:32px!important;min-width:74px;font-size:12px!important}
  .kce-mobile-card .kce-badge{max-width:132px;font-size:9.5px!important}
}


/* v0.1.7 - Event list mode: no calendar grid */
.kce-list-shell{
  padding:18px;
}
.kce-list-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding:18px 20px;
  background:#fff;
  border:2px solid var(--mk-border,#000);
  border-radius:18px;
  box-shadow:3px 3px 0 #000;
}
.kce-list-head h3{
  margin:4px 0 0;
  font-size:clamp(26px,3vw,40px);
  line-height:1;
  font-weight:1000;
  color:var(--mk-text,#111827);
  letter-spacing:-.04em;
}
.kce-list-head p{
  margin:0;
  color:var(--mk-muted,#4B5563);
  font-weight:800;
  line-height:1.45;
  max-width:360px;
}
.kce-eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:7px 12px;
  border:2px solid #000;
  border-radius:999px;
  background:var(--mk-yellow,#FCD34D);
  box-shadow:2px 2px 0 #000;
  font-weight:1000;
  font-size:13px;
}
.kce-events-list{
  display:grid;
  gap:18px;
}
.kce-event-month{
  display:grid;
  gap:12px;
}
.kce-event-month h4{
  margin:4px 4px 0;
  font-size:20px;
  font-weight:1000;
  color:#111827;
}
.kce-event-cards{
  display:grid;
  gap:14px;
}
.kce-list-card{
  display:grid;
  grid-template-columns:86px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  background:#fff;
  border:2px solid #000;
  border-radius:20px;
  padding:16px;
  box-shadow:4px 4px 0 #000;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.kce-list-card:hover{
  transform:translate(-1px,-1px);
  box-shadow:2px 2px 0 #000;
}
.kce-list-date{
  min-height:86px;
  border:2px solid #000;
  border-radius:18px;
  background:#DBEAFE;
  box-shadow:2px 2px 0 #000;
  display:grid;
  place-items:center;
  align-content:center;
}
.kce-list-day{
  font-size:34px;
  line-height:1;
  font-weight:1000;
  color:#1D4ED8;
}
.kce-list-month{
  font-size:14px;
  font-weight:1000;
  color:#111827;
}
.kce-list-content{
  min-width:0;
}
.kce-list-top{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.kce-list-format{
  display:inline-flex;
  padding:7px 11px;
  border:2px solid #000;
  border-radius:999px;
  background:#fff;
  box-shadow:2px 2px 0 rgba(0,0,0,.12);
  font-size:13px;
  font-weight:1000;
}
.kce-list-card h5{
  margin:0 0 8px;
  font-size:clamp(20px,2.2vw,30px);
  line-height:1.08;
  font-weight:1000;
  color:#111827;
  letter-spacing:-.035em;
}
.kce-list-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  color:#4B5563;
  font-size:14px;
  line-height:1.3;
  font-weight:850;
}
.kce-list-meta span{
  display:inline-flex;
  align-items:center;
}
.kce-list-card p{
  margin:9px 0 0;
  color:#374151;
  font-size:15px;
  line-height:1.55;
  font-weight:700;
}
.kce-list-action button{
  min-width:132px;
  height:46px;
  padding:0 18px;
  border:2px solid #000;
  border-radius:999px;
  background:#F472B6;
  color:#111827;
  box-shadow:3px 3px 0 #000;
  font-family:inherit;
  font-weight:1000;
  font-size:15px;
}
.kce-list-action button:hover{
  transform:translate(-1px,-1px);
  box-shadow:2px 2px 0 #000;
}
.kce-empty{
  background:#fff;
  border:2px dashed #000;
  border-radius:18px;
  padding:24px;
  text-align:center;
  font-weight:900;
  color:#4B5563;
}

@media(max-width:920px){
  .kce-list-shell{
    padding:8px;
  }
  .kce-list-head{
    display:grid;
    gap:8px;
    padding:12px;
    border-radius:16px;
    margin-bottom:10px;
    box-shadow:3px 3px 0 #000;
  }
  .kce-list-head h3{
    font-size:26px;
  }
  .kce-list-head p{
    font-size:13px;
    max-width:none;
  }
  .kce-eyebrow{
    font-size:12px;
    padding:6px 10px;
  }
  .kce-events-list{
    gap:12px;
  }
  .kce-event-month h4{
    font-size:17px;
    margin:2px 2px 0;
  }
  .kce-event-cards{
    gap:10px;
  }
  .kce-list-card{
    grid-template-columns:58px minmax(0,1fr);
    grid-template-areas:
      "date content"
      "action action";
    gap:10px;
    padding:10px;
    border-radius:16px;
    box-shadow:3px 3px 0 #000;
  }
  .kce-list-date{
    grid-area:date;
    min-height:58px;
    border-radius:14px;
  }
  .kce-list-day{
    font-size:25px;
  }
  .kce-list-month{
    font-size:11px;
  }
  .kce-list-content{
    grid-area:content;
  }
  .kce-list-top{
    gap:5px;
    margin-bottom:5px;
  }
  .kce-list-card .kce-badge,
  .kce-list-format{
    font-size:10px!important;
    padding:5px 8px!important;
    box-shadow:1.5px 1.5px 0 rgba(0,0,0,.16);
  }
  .kce-list-card h5{
    font-size:17px;
    line-height:1.12;
    margin-bottom:6px;
  }
  .kce-list-meta{
    gap:4px 8px;
    font-size:12px;
  }
  .kce-list-card p{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-top:6px;
    font-size:12.5px;
    line-height:1.35;
  }
  .kce-list-action{
    grid-area:action;
  }
  .kce-list-action button{
    width:100%;
    min-width:0;
    height:38px;
    font-size:14px;
    box-shadow:2px 2px 0 #000;
  }
  .kce-info-box{
    margin-top:10px;
  }
}


/* v0.2.0 consent text + privacy link */
.kce-check span{
  display:block;
  min-width:0;
}
.kce-check a{
  color:#1D4ED8;
  font-weight:1000;
  text-decoration:underline;
  text-underline-offset:3px;
  margin:0 4px;
}
.kce-check a:hover{
  color:#111827;
}
@media(max-width:520px){
  .kce-check{
    align-items:flex-start;
  }
  .kce-check span{
    font-size:12.5px;
    line-height:1.45;
  }
}


/* v0.2.4 — structured event modal */
.kce-drawer-panel,
.kce-modal-panel{
  max-height: min(86vh, 860px);
  overflow: auto;
}
.kce-event-detail-v2{
  display: grid;
  gap: 18px;
}
.kce-detail-hero{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(160px,240px);
  gap: 18px;
  align-items: start;
}
.kce-detail-hero .kce-panel-image{
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 2px solid #000;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
}
.kce-event-detail-v2 h3{
  font-size: clamp(28px,4vw,46px);
  line-height: 1.05;
  margin: 10px 0 8px;
  letter-spacing: -0.03em;
}
.kce-detail-intro{
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  color: #374151;
  max-width: 68ch;
}
.kce-detail-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.kce-detail-chip{
  background: #DBEAFE;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 3px 3px 0 #000;
}
.kce-detail-chip strong{
  display:block;
  font-size: 12px;
  color:#111827;
  margin-bottom:4px;
}
.kce-detail-chip span{
  display:block;
  font-size: 15px;
  font-weight: 800;
  color:#111827;
}
.kce-detail-section{
  background:#fff;
  border:2px solid #000;
  border-radius:20px;
  padding:18px;
  box-shadow:4px 4px 0 #000;
}
.kce-detail-section h4{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.15;
  font-weight:1000;
}
.kce-presenter-card{
  background:#FEF3C7;
}
.kce-readable{
  font-size:16px;
  line-height:1.75;
  color:#374151;
}
.kce-readable p{
  margin:0 0 12px;
}
.kce-readable p:last-child{
  margin-bottom:0;
}
.kce-readable ul,
.kce-readable ol{
  margin: 8px 0 12px;
  padding-inline-start: 22px;
}
.kce-readable li{
  margin-bottom: 6px;
}
.kce-readable h2,
.kce-readable h3,
.kce-readable h4{
  margin:18px 0 8px;
  color:#111827;
}
@media(max-width:720px){
  .kce-detail-hero{
    grid-template-columns: 1fr;
  }
  .kce-detail-grid{
    grid-template-columns: 1fr;
  }
  .kce-event-detail-v2 h3{
    font-size: 30px;
  }
  .kce-readable{
    font-size:15px;
    line-height:1.65;
  }
}


/* v0.2.5 — modal layout fix: info first, form below */
.kce-drawer.is-open{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.kce-drawer .kce-panel{
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  transform:none !important;
  width:min(1120px, calc(100vw - 48px)) !important;
  max-height:calc(100vh - 48px) !important;
  overflow:auto !important;
  border-radius:28px !important;
  padding:24px !important;
  box-sizing:border-box;
}
.kce-drawer.is-open .kce-panel{
  transform:none !important;
}
.kce-modal-body{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:18px !important;
  align-items:stretch !important;
}
.kce-modal-main,
.kce-modal-aside{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
}
.kce-event-detail-v2,
.kce-event-detail{
  width:100%;
  box-sizing:border-box;
}
.kce-event-detail-v2{
  padding:22px !important;
}
.kce-detail-hero{
  grid-template-columns:1fr !important;
  gap:12px !important;
}
.kce-event-detail-v2 h3{
  max-width: 920px;
}
.kce-detail-intro,
.kce-readable{
  max-width: 92ch;
}
.kce-detail-grid{
  grid-template-columns:repeat(5, minmax(0,1fr)) !important;
}
.kce-detail-chip{
  min-height:76px;
}
.kce-detail-section{
  max-width:none;
}
.kce-form-card{
  max-width:none !important;
  width:100%;
  box-sizing:border-box;
  padding:20px !important;
}
.kce-form-card-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.kce-form-card-head h4{
  margin:0;
}
.kce-form-card-head p{
  margin:0;
}
.kce-form{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:12px !important;
}
.kce-form .kce-check,
.kce-form .kce-submit,
.kce-form .kce-form-message,
.kce-form [name="website"]{
  grid-column:1 / -1;
}
.kce-check{
  line-height:1.45;
}
.kce-close{
  position:sticky !important;
  top:0 !important;
  float:left;
  z-index:3;
}
@media(max-width:980px){
  .kce-detail-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
  .kce-form{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}
@media(max-width:680px){
  .kce-drawer.is-open{
    padding:8px;
  }
  .kce-drawer .kce-panel{
    width:calc(100vw - 16px) !important;
    max-height:calc(100vh - 16px) !important;
    padding:14px !important;
    border-radius:20px !important;
  }
  .kce-detail-grid,
  .kce-form{
    grid-template-columns:1fr !important;
  }
  .kce-form-card-head{
    display:block;
  }
  .kce-event-detail-v2{
    padding:16px !important;
  }
  .kce-detail-section{
    padding:15px !important;
  }
}


/* v0.2.6 — WhatsApp invite like unit sharing footer */
.kce-whatsapp-invite{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  background:#DCFCE7;
  border:2px solid #000;
  border-radius:22px;
  padding:18px;
  box-shadow:4px 4px 0 #000;
  margin-top:4px;
}
.kce-whatsapp-icon{
  width:54px;
  height:54px;
  border:2px solid #000;
  border-radius:18px;
  background:#34D399;
  display:grid;
  place-items:center;
  font-size:26px;
  font-weight:1000;
  box-shadow:3px 3px 0 #000;
}
.kce-whatsapp-copy h4{
  margin:0 0 5px;
  font-size:22px;
  line-height:1.15;
  font-weight:1000;
}
.kce-whatsapp-copy p{
  margin:0;
  color:#374151;
  font-size:15px;
  line-height:1.55;
}
.kce-whatsapp-invite a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  min-height:46px;
  padding:0 18px;
  border:2px solid #000;
  border-radius:999px;
  background:#25D366;
  color:#111827 !important;
  text-decoration:none;
  font-weight:1000;
  box-shadow:3px 3px 0 #000;
}
.kce-whatsapp-invite a:hover{
  transform:translate(-1px,-1px);
  box-shadow:4px 4px 0 #000;
}
@media(max-width:760px){
  .kce-whatsapp-invite{
    grid-template-columns:1fr;
    text-align:center;
  }
  .kce-whatsapp-icon{
    margin:0 auto;
  }
  .kce-whatsapp-invite a{
    width:100%;
  }
}


/* v0.2.7 — server-rendered WhatsApp footer below form */
.kce-whatsapp-invite-static{
  margin-top:16px;
}
.kce-modal-aside{
  display:grid;
  gap:16px;
}


/* v0.2.8 — show WhatsApp banner on the page itself too */
.kce-page-whatsapp{
  margin-top:18px;
  width:100%;
}
.kce-list-shell .kce-page-whatsapp{
  box-sizing:border-box;
}

/* v0.4.2 - past activity state */
.kce-list-card.is-past{
  background:#F3F4F6;
  border-color:#6B7280;
  box-shadow:3px 3px 0 #6B7280;
}
.kce-list-card.is-past:hover{
  box-shadow:2px 2px 0 #6B7280;
}
.kce-list-card.is-past .kce-list-date{
  background:#E5E7EB;
  border-color:#6B7280;
  box-shadow:2px 2px 0 #6B7280;
}
.kce-list-card.is-past .kce-list-day,
.kce-list-card.is-past h5{
  color:#4B5563;
}
.kce-list-card.is-past .kce-list-action button{
  background:#E5E7EB;
  color:#374151;
  border-color:#6B7280;
  box-shadow:3px 3px 0 #6B7280;
}
.kce-past-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border:2px solid #000;
  border-radius:999px;
  background:#FCD34D;
  color:#111827;
  box-shadow:2px 2px 0 rgba(0,0,0,.18);
  font-size:13px;
  line-height:1;
  font-weight:1000;
}
.kce-form-message.is-past{
  display:block;
  margin-top:18px;
  background:#FEF3C7;
  color:#78350F;
  border:2px solid #92400E;
  border-radius:14px;
  padding:13px 15px;
  font-weight:900;
}
@media(max-width:920px){
  .kce-list-card .kce-past-badge{
    font-size:10px;
    padding:5px 8px;
    box-shadow:1.5px 1.5px 0 rgba(0,0,0,.16);
  }
}
