.dcksch, .dcksch-modal { --dck-purple: #6d3f98; --dck-purple-dark: #5b3380; --dck-pink: #e5347f; --dck-pink-soft: #fdf2f7; --dck-pink-border: #fbdcea; --dck-violet: #7b2ff7; --dck-border: #e7e9f0; --dck-muted: #6b7280; font-size: 15px; color: #1f2229; }
.dcksch-modal * { box-sizing: border-box; }
.dcksch * { box-sizing: border-box; }
.dcksch-empty { padding: 32px; text-align: center; color: #6b7280; background: #f6f7fb; border-radius: 14px; }

/* top bar: audience toggle (matches the classic DCK look) + term + search */
.dcksch-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dcksch-aud-group { display: inline-flex; }
.dcksch-aud { border: none; cursor: pointer; font-weight: 600; font-size: 16px; padding: 16px 34px; background: #f4f4f4; color: #555; display: inline-flex; align-items: center; gap: 10px; transition: .18s; font-family: inherit; }
.dcksch-aud .dcksch-check { font-weight: 900; }
.dcksch-aud.on { background: var(--dck-purple); color: #fff; }
.dcksch-aud:hover:not(.on) { background: #ececec; }
.dcksch-term { font-weight: 700; color: var(--dck-purple); }
.dcksch-search { margin-left: auto; border: 1px solid var(--dck-border); border-radius: 10px; padding: 11px 14px; font-size: 14px; min-width: 230px; background: #fff; }

/* day columns: purple header bars, stacked cards with NO empty time gaps */
.dcksch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: start; }
.dcksch-dayhead { background: var(--dck-purple); color: #fff; text-align: center; font-weight: 700; letter-spacing: 1px; font-size: 15px; padding: 12px 6px; }
.dcksch-daybody { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.dcksch-day[data-hidden] { display: none; }

.dcksch-class { display: block; width: 100%; text-align: left; background: #f4f4f4; border: none; border-left: 4px solid var(--dck-c); padding: 16px 16px 14px; cursor: pointer; transition: .18s; font-family: inherit; }
.dcksch-class:hover { background: #ece9f3; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(40, 20, 70, .10); }
.dcksch-class[data-hidden] { display: none; }
.dcksch-title { display: block; font-weight: 700; font-size: 15px; color: #1f2229; line-height: 1.3; }
.dcksch-time { display: block; font-size: 15px; color: #1f2229; margin: 6px 0 8px; letter-spacing: .3px; }
.dcksch-meta { display: block; font-size: 12.5px; color: var(--dck-muted); line-height: 1.55; }
.dcksch-none { padding: 28px; text-align: center; color: var(--dck-muted); }

/* modal */
.dcksch-modal { position: fixed; inset: 0; background: rgba(20, 10, 35, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 20px; }
.dcksch-modal[hidden] { display: none; }
.dcksch-modal-box { position: relative; background: #fff; border-radius: 20px; max-width: 800px; width: 100%; padding: 0; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); animation: dckpop .18s ease; }
.dcksch-modal-bar { height: 8px; background: linear-gradient(90deg, var(--dck-c, var(--dck-pink)), var(--dck-violet)); }
.dcksch-modal-body { display: grid; grid-template-columns: 1fr 280px; }
.dcksch-m-content { padding: 26px 30px 30px; min-width: 0; }
.dcksch-m-media { background: linear-gradient(160deg, var(--dck-c, var(--dck-pink)), var(--dck-violet)); overflow: hidden; }
.dcksch-m-img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 100%; color: transparent; }
.dcksch-close { position: absolute; top: 20px; right: 20px; border: none; background: #f0f1f6; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; z-index: 2; transition: .15s; }
.dcksch-close:hover { background: #e4e6ee; }

.dcksch-m-head { display: flex; align-items: center; gap: 12px; margin: 4px 44px 12px 0; }
.dcksch-m-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--dck-c, var(--dck-pink)); flex-shrink: 0; }
.dcksch-m-title { margin: 0 !important; font-size: 25px !important; font-weight: 800 !important; color: #16181d !important; letter-spacing: -.3px !important; text-transform: none !important; font-family: inherit !important; line-height: 1.2 !important; }

.dcksch-m-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.dcksch-pill { background: color-mix(in srgb, var(--dck-c, var(--dck-pink)) 9%, #fff); color: color-mix(in srgb, var(--dck-c, var(--dck-pink)) 85%, #000); border: 1px solid color-mix(in srgb, var(--dck-c, var(--dck-pink)) 22%, #fff); font-weight: 600; font-size: 13.5px; padding: 7px 18px; border-radius: 999px; }
@supports not (color: color-mix(in srgb, red, blue)) {
  .dcksch-pill { background: var(--dck-pink-soft); color: var(--dck-c, var(--dck-pink)); border-color: var(--dck-pink-border); }
  .dcksch-m-ic { background: var(--dck-pink-soft); }
}
.dcksch-pill:empty { display: none; }

.dcksch-m-card { background: #f7f8fa; border: 1px solid #eef0f4; border-radius: 16px; overflow: hidden; }
.dcksch-m-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #eceef3; }
.dcksch-m-row:last-child { border-bottom: none; }
.dcksch-m-ic { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--dck-c, var(--dck-pink)) 9%, #fff); color: var(--dck-c, var(--dck-pink)); }
.dcksch-m-ic svg { width: 21px; height: 21px; }
.dcksch-m-rowtx { display: flex; flex-direction: column; min-width: 0; }
.dcksch-m-rowtx small { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9aa1b2; }
.dcksch-m-rowtx b { font-size: 16.5px; font-weight: 600; color: #16181d; }
.dcksch-m-row[hidden] { display: none; }

.dcksch-m-noteswrap { display: flex; align-items: center; gap: 12px; background: #f7f8fa; border-left: 4px solid var(--dck-c, var(--dck-pink)); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.dcksch-m-noteswrap[hidden] { display: none; }
.dcksch-m-noteswrap .dcksch-m-ic { width: 36px; height: 36px; }
.dcksch-m-notes { margin: 0; color: #374151; font-size: 14.5px; line-height: 1.5; }

.dcksch-register { display: block; text-align: center; margin-top: 20px; background: linear-gradient(90deg, var(--dck-c, var(--dck-pink)), var(--dck-violet)); color: #fff !important; padding: 17px 22px; border-radius: 16px; font-weight: 700; font-size: 16.5px; text-decoration: none !important; transition: .15s; box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--dck-c, var(--dck-pink)) 65%, transparent); }
.dcksch-register:hover { filter: brightness(1.08); }

@media (max-width: 680px) {
  .dcksch-modal-body { grid-template-columns: 1fr; }
  .dcksch-m-media { order: -1; }
  .dcksch-m-img { min-height: 130px; max-height: 150px; }
}

@media (max-width: 900px) { .dcksch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .dcksch-grid { grid-template-columns: 1fr; }
  .dcksch-search { min-width: 100%; margin-left: 0; }
  .dcksch-aud { flex: 1; justify-content: center; }
  .dcksch-aud-group { width: 100%; }
}

/* ---- built-in branch tabs ([dck_schedule_tabs]) ---- */
.dcksch-tabs-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; background: #f1f2f6; padding: 6px; border-radius: 14px; width: fit-content; }
.dcksch-tab { border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px; padding: 12px 26px; border-radius: 10px; background: transparent; color: #555; transition: .18s; }
.dcksch-tab:hover:not(.on) { color: #1f2229; }
.dcksch-tab.on { background: #6d3f98; color: #fff; box-shadow: 0 6px 16px -6px rgba(109, 63, 152, .6); }
.dcksch-tabpanel[hidden] { display: none; }
@media (max-width: 560px) { .dcksch-tabs-bar { width: 100%; } .dcksch-tab { flex: 1; padding: 12px 10px; } }
