.dcet-calendar-shell {
  --dcet-primary: #2563eb;
  --dcet-accent: #10b981;
  --dcet-ink: #0f172a;
  --dcet-muted: #64748b;
  --dcet-line: #e2e8f0;
  --dcet-card: #ffffff;
  --dcet-soft: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dcet-ink);
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px;
}

.dcet-calendar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--dcet-primary) 18%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--dcet-line);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  margin-bottom: 22px;
}

.dcet-eyebrow {
  margin: 0 0 8px;
  color: var(--dcet-primary);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.dcet-calendar-hero h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dcet-calendar-hero p:not(.dcet-eyebrow) {
  color: var(--dcet-muted);
  font-size: 17px;
  margin: 12px 0 0;
  max-width: 680px;
}

.dcet-hero-card {
  min-width: 150px;
  padding: 20px;
  border-radius: 24px;
  background: var(--dcet-ink);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
}

.dcet-hero-number {
  display: block;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.dcet-hero-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #cbd5e1;
}

.dcet-calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.dcet-month-control,
.dcet-calendar-actions,
.dcet-view-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dcet-month-control {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--dcet-line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dcet-month-control strong {
  min-width: 180px;
  text-align: center;
  font-size: 16px;
}

.dcet-month-control button,
.dcet-view-toggle button,
.dcet-card-actions button,
.dcet-card-actions a,
.dcet-register-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.dcet-month-control button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--dcet-soft);
  color: var(--dcet-ink);
  font-size: 24px;
  line-height: 1;
}

.dcet-month-control button:hover,
.dcet-view-toggle button.active {
  background: var(--dcet-primary);
  color: #fff;
}

.dcet-calendar-actions select {
  min-height: 42px;
  border: 1px solid var(--dcet-line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--dcet-ink);
  font-weight: 700;
}

.dcet-view-toggle {
  padding: 5px;
  border: 1px solid var(--dcet-line);
  border-radius: 999px;
  background: #fff;
}

.dcet-view-toggle button {
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--dcet-muted);
}

.dcet-weekdays,
.dcet-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dcet-weekdays {
  gap: 8px;
  margin-bottom: 8px;
  color: var(--dcet-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dcet-weekdays span {
  padding: 0 10px;
}

.dcet-month-grid {
  gap: 8px;
}

.dcet-day {
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--dcet-line);
  border-radius: 18px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dcet-day:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--dcet-primary) 30%, var(--dcet-line));
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.dcet-day.muted {
  background: #f8fafc;
  color: #94a3b8;
}

.dcet-day.today {
  outline: 2px solid color-mix(in srgb, var(--dcet-accent) 35%, transparent);
}

.dcet-day-number {
  font-weight: 900;
  margin-bottom: 8px;
}

.dcet-day-events {
  display: grid;
  gap: 6px;
}

.dcet-event-pill {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 7px 8px;
  background: color-mix(in srgb, var(--dcet-primary) 11%, #fff);
  color: var(--dcet-primary);
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dcet-event-pill span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dcet-more {
  font-size: 12px;
  color: var(--dcet-muted);
  font-weight: 800;
}

.dcet-list-view {
  display: grid;
  gap: 14px;
}

.dcet-list-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--dcet-line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.dcet-date-badge {
  height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--dcet-ink);
  color: #fff;
}

.dcet-date-badge span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #cbd5e1;
}

.dcet-date-badge strong {
  font-size: 30px;
  line-height: .8;
}

.dcet-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--dcet-muted);
  font-size: 13px;
  font-weight: 800;
}

.dcet-list-content h3 {
  margin: 7px 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.dcet-list-content p {
  margin: 6px 0;
  color: var(--dcet-muted);
}

.dcet-location {
  font-weight: 800;
  color: var(--dcet-ink) !important;
}

.dcet-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dcet-card-actions button,
.dcet-card-actions a,
.dcet-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dcet-primary);
  color: #fff;
}

.dcet-card-actions a,
.dcet-register-button {
  background: var(--dcet-accent);
}

.dcet-no-events,
.dcet-calendar-empty {
  padding: 28px;
  border-radius: 24px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 700;
}

.dcet-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .56);
  z-index: 99999;
}

.dcet-modal.open {
  display: flex;
}

.dcet-modal-panel {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: auto;
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .35);
}

.dcet-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--dcet-soft);
  color: var(--dcet-ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.dcet-modal-category {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dcet-primary) 10%, #fff);
  color: var(--dcet-primary);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dcet-modal h3 {
  margin: 0 34px 14px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.05em;
}

.dcet-modal-meta {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--dcet-soft);
}

.dcet-modal-meta p,
.dcet-modal-description {
  margin: 0;
  color: var(--dcet-muted);
}

.dcet-modal-description {
  margin-top: 16px;
  white-space: pre-line;
}

.dcet-modal-actions {
  margin-top: 20px;
}

.dcet-registration-note {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--dcet-soft);
  color: var(--dcet-muted);
  font-weight: 800;
}

.dcet-calendar-credit {
  text-align: center;
  color: var(--dcet-muted);
  font-size: 13px;
  margin-top: 24px;
}

@media (max-width: 780px) {
  .dcet-calendar-hero {
    grid-template-columns: 1fr;
  }
  .dcet-hero-card {
    width: 100%;
  }
  .dcet-weekdays {
    display: none;
  }
  .dcet-month-grid {
    grid-template-columns: 1fr;
  }
  .dcet-day {
    min-height: auto;
  }
  .dcet-day.muted {
    display: none;
  }
  .dcet-list-card {
    grid-template-columns: 1fr;
  }
  .dcet-date-badge {
    width: 76px;
  }
  .dcet-calendar-toolbar,
  .dcet-calendar-actions {
    align-items: stretch;
  }
  .dcet-month-control,
  .dcet-calendar-actions,
  .dcet-view-toggle,
  .dcet-calendar-actions select {
    width: 100%;
  }
  .dcet-view-toggle button {
    flex: 1;
  }
  .dcet-month-control strong {
    flex: 1;
    min-width: 0;
  }
}

/* Phase 1.5 layout upgrades */
.dcet-calendar-shell {
  max-width: 1480px;
}

.dcet-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.dcet-calendar-main {
  min-width: 0;
}

.dcet-calendar-side {
  position: sticky;
  top: 24px;
}

.dcet-highlight-card {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--dcet-accent) 18%, transparent), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--dcet-line);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.dcet-highlight-kicker {
  margin: 0 0 8px;
  color: var(--dcet-accent);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.dcet-highlight-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}

.dcet-highlight-body p {
  color: var(--dcet-muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.dcet-highlight-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--dcet-primary);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.dcet-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 16px;
}

.dcet-source-tabs button {
  border: 1px solid var(--dcet-line);
  border-radius: 999px;
  background: #fff;
  color: var(--dcet-ink);
  cursor: pointer;
  font-weight: 900;
  padding: 12px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dcet-source-tabs button.active,
.dcet-source-tabs button:hover {
  background: var(--dcet-primary);
  border-color: var(--dcet-primary);
  color: #fff;
}

.dcet-month-grid {
  gap: 10px;
}

.dcet-day {
  min-height: 158px;
  overflow: hidden;
}

.dcet-event-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  line-height: 1.2;
}

.dcet-event-pill span {
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
}

.dcet-event-time {
  font-size: 10px;
  font-weight: 900;
  opacity: .78;
  white-space: nowrap !important;
}

.dcet-event-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dcet-event-pill.source-dropin {
  background: color-mix(in srgb, var(--dcet-accent) 14%, #fff);
  color: #047857;
}

.dcet-event-pill.source-training {
  background: color-mix(in srgb, #f59e0b 18%, #fff);
  color: #92400e;
}

@media (max-width: 1180px) {
  .dcet-calendar-layout {
    grid-template-columns: 1fr;
  }
  .dcet-calendar-side {
    position: static;
  }
}

@media (max-width: 780px) {
  .dcet-calendar-layout {
    gap: 18px;
  }
  .dcet-source-tabs button {
    flex: 1 1 100%;
  }
  .dcet-highlight-card {
    border-radius: 22px;
  }
}

/* Phase 1.6 full-width breathing room fixes */
.dcet-calendar-shell {
  box-sizing: border-box;
  width: calc(100vw - 48px);
  max-width: 1720px;
  margin-left: calc(50% - 50vw + 24px);
  margin-right: calc(50% - 50vw + 24px);
  padding-left: 0;
  padding-right: 0;
}

.dcet-calendar-hero,
.dcet-calendar-toolbar,
.dcet-source-tabs,
.dcet-calendar-layout,
.dcet-calendar-credit {
  width: 100%;
}

.dcet-calendar-layout {
  grid-template-columns: minmax(760px, 1fr) minmax(300px, 360px);
  gap: 32px;
}

.dcet-month-grid,
.dcet-weekdays {
  gap: 12px;
}

.dcet-day {
  min-height: 168px;
  padding: 12px;
  border-radius: 20px;
}

.dcet-event-pill {
  padding: 8px 9px;
  font-size: 12px;
}

.dcet-event-title {
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 1280px) {
  .dcet-calendar-layout {
    grid-template-columns: 1fr;
  }
  .dcet-calendar-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .dcet-calendar-shell {
    width: calc(100vw - 28px);
    margin-left: calc(50% - 50vw + 14px);
    margin-right: calc(50% - 50vw + 14px);
  }
}

@media (max-width: 780px) {
  .dcet-calendar-shell {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
}


/* Phase 1.7 polish: calmer width, smaller event text, no side dropdown needed */
.dcet-calendar-shell {
  width: calc(100vw - 96px);
  max-width: 1560px;
  margin-left: calc(50% - 50vw + 48px);
  margin-right: calc(50% - 50vw + 48px);
}

.dcet-calendar-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 34px;
}

.dcet-calendar-note {
  display: inline-flex;
  align-items: center;
  margin: 2px 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--dcet-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dcet-primary) 6%, #fff);
  color: var(--dcet-muted);
  font-size: 13px;
  font-weight: 800;
}

.dcet-calendar-actions select {
  display: none;
}

.dcet-day {
  min-height: 156px;
  padding: 10px;
}

.dcet-event-pill {
  padding: 6px 7px;
  font-size: 10.5px;
  gap: 5px;
  border-radius: 9px;
}

.dcet-event-time {
  font-size: 9.5px;
}

.dcet-event-title {
  line-height: 1.12;
}

@media (max-width: 1280px) {
  .dcet-calendar-shell {
    width: calc(100vw - 56px);
    margin-left: calc(50% - 50vw + 28px);
    margin-right: calc(50% - 50vw + 28px);
  }
}

@media (max-width: 900px) {
  .dcet-calendar-shell {
    width: calc(100vw - 28px);
    margin-left: calc(50% - 50vw + 14px);
    margin-right: calc(50% - 50vw + 14px);
  }
}

/* Phase 1.8: full calendar width, Today button, better list-month behavior */
.dcet-calendar-shell {
  width: calc(100vw - 64px);
  max-width: 1680px;
  margin-left: calc(50% - 50vw + 32px);
  margin-right: calc(50% - 50vw + 32px);
}

.dcet-calendar-layout {
  display: block;
}

.dcet-calendar-main {
  width: 100%;
}

.dcet-calendar-side,
.dcet-calendar-note {
  display: none !important;
}

.dcet-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 16px;
}

.dcet-source-tabs {
  margin: 0;
  align-items: center;
}

.dcet-source-tabs button.dcet-today-button {
  position: relative;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.32), transparent 22%),
    linear-gradient(135deg, var(--dcet-accent), var(--dcet-primary));
  padding: 15px 24px;
  font-size: 15px;
  letter-spacing: -.01em;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .22);
}

.dcet-source-tabs button.dcet-today-button:hover,
.dcet-source-tabs button.dcet-today-button.active {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(37, 99, 235, .30);
  color: #fff;
}

.dcet-calendar-toolbar.today-toolbar .dcet-month-control button {
  visibility: hidden;
}

.dcet-month-grid,
.dcet-weekdays {
  gap: 10px;
}

.dcet-day {
  min-height: 162px;
  padding: 9px;
}

.dcet-day-number {
  margin-bottom: 6px;
  font-size: 14px;
}

.dcet-day-events {
  gap: 4px;
}

.dcet-event-pill {
  padding: 5px 6px;
  font-size: 9.5px;
  line-height: 1.08;
  grid-template-columns: auto minmax(0, 1fr);
}

.dcet-event-time {
  font-size: 8.75px;
  line-height: 1.1;
}

.dcet-event-title {
  line-height: 1.1;
}

.dcet-list-heading {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dcet-primary) 8%, #fff);
  color: var(--dcet-primary);
  font-weight: 900;
}

.dcet-today-panel {
  padding: 22px;
  border: 1px solid var(--dcet-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--dcet-accent) 12%, transparent), transparent 34%),
    #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.dcet-today-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 16px;
}

.dcet-today-header span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--dcet-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dcet-today-header strong {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.04em;
}

.source-card-dropin {
  border-left: 5px solid var(--dcet-accent);
}

.source-card-training {
  border-left: 5px solid #f59e0b;
}

@media (max-width: 1280px) {
  .dcet-calendar-shell {
    width: calc(100vw - 36px);
    margin-left: calc(50% - 50vw + 18px);
    margin-right: calc(50% - 50vw + 18px);
  }
}

@media (max-width: 780px) {
  .dcet-calendar-shell {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .dcet-source-tabs button.dcet-today-button {
    flex: 1 1 100%;
  }
  .dcet-today-panel {
    padding: 14px;
    border-radius: 22px;
  }
}

/* Phase 2 registration form */
.dcet-registration-box {
  width: 100%;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid var(--dcet-line);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.dcet-registration-box h4 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--dcet-ink);
}

.dcet-registration-box p {
  margin: 0 0 14px;
  color: var(--dcet-muted);
}

.dcet-registration-form {
  display: grid;
  gap: 12px;
}

.dcet-registration-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--dcet-ink);
}

.dcet-registration-form input,
.dcet-registration-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--dcet-line);
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--dcet-ink);
}

.dcet-registration-form input:focus,
.dcet-registration-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--dcet-primary) 18%, transparent);
  border-color: var(--dcet-primary);
}

.dcet-inline-register {
  border: 0 !important;
  background: var(--dcet-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  font-weight: 900 !important;
  cursor: pointer;
}

.dcet-registration-response {
  min-height: 20px;
  font-weight: 800;
}

.dcet-registration-response.success { color: #047857; }
.dcet-registration-response.error { color: #b91c1c; }
.dcet-registration-response.loading { color: var(--dcet-muted); }

.dcet-external-register {
  margin-top: 12px !important;
  font-size: 13px;
}


/* Phase 2.1 polish: remove events-loaded card, add hero Today button, weekly view, clickable +more */
.dcet-calendar-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dcet-hero-card {
  display: none !important;
}

.dcet-hero-today {
  border: 0;
  cursor: pointer;
  min-width: 210px;
  padding: 18px 24px;
  border-radius: 24px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.38), transparent 24%),
    linear-gradient(135deg, var(--dcet-accent), var(--dcet-primary));
  box-shadow: 0 20px 50px rgba(37, 99, 235, .24);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dcet-hero-today:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(37, 99, 235, .34);
}

.dcet-hero-today span {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
}

.dcet-hero-today strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}

.dcet-view-toggle button {
  min-width: 74px;
}

button.dcet-more {
  width: 100%;
  border: 1px dashed color-mix(in srgb, var(--dcet-primary) 30%, var(--dcet-line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--dcet-primary) 5%, #fff);
  color: var(--dcet-primary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 6px;
  text-align: left;
}

button.dcet-more:hover {
  background: var(--dcet-primary);
  color: #fff;
}

.dcet-week-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.dcet-week-column {
  min-height: 520px;
  padding: 12px;
  border: 1px solid var(--dcet-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.dcet-week-column.today {
  outline: 2px solid color-mix(in srgb, var(--dcet-accent) 40%, transparent);
}

.dcet-week-date {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dcet-line);
}

.dcet-week-date span {
  color: var(--dcet-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dcet-week-date strong {
  font-size: 18px;
  letter-spacing: -.03em;
}

.dcet-week-events {
  display: grid;
  gap: 8px;
}

.dcet-week-event {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 14px;
  padding: 10px;
  background: color-mix(in srgb, var(--dcet-primary) 10%, #fff);
  color: var(--dcet-primary);
  cursor: pointer;
  text-align: left;
}

.dcet-week-event span {
  font-size: 11px;
  font-weight: 900;
  opacity: .78;
}

.dcet-week-event strong {
  font-size: 13px;
  line-height: 1.15;
}

.dcet-week-event em {
  color: var(--dcet-muted);
  font-size: 11px;
  font-style: normal;
}

.dcet-week-event.source-dropin {
  background: color-mix(in srgb, var(--dcet-accent) 14%, #fff);
  color: #047857;
}

.dcet-week-event.source-training {
  background: color-mix(in srgb, #f59e0b 18%, #fff);
  color: #92400e;
}

.dcet-week-empty {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--dcet-soft);
  color: var(--dcet-muted);
  font-size: 12px;
  font-weight: 800;
}

.dcet-day-detail .dcet-list-card {
  box-shadow: none;
}

@media (max-width: 1180px) {
  .dcet-week-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dcet-week-column {
    min-height: 260px;
  }
}

@media (max-width: 780px) {
  .dcet-calendar-hero {
    grid-template-columns: 1fr;
  }
  .dcet-hero-today {
    width: 100%;
  }
  .dcet-week-view {
    grid-template-columns: 1fr;
  }
  .dcet-week-column {
    min-height: auto;
  }
}

/* Phase 2.2 polish: stronger Today button, solid event colors, and registration status panel */
.dcet-hero-today {
  min-width: 270px !important;
  padding: 24px 32px !important;
  border-radius: 28px !important;
  background: var(--dcet-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 24px 56px rgba(37, 99, 235, .32) !important;
}

.dcet-hero-today:hover {
  background: color-mix(in srgb, var(--dcet-primary) 86%, #000) !important;
  box-shadow: 0 30px 70px rgba(37, 99, 235, .42) !important;
}

.dcet-hero-today span {
  font-size: 14px !important;
  opacity: 1 !important;
}

.dcet-hero-today strong {
  font-size: 36px !important;
}

.dcet-event-pill,
.dcet-week-event {
  background: var(--dcet-primary) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.dcet-event-pill.source-main,
.dcet-week-event.source-main {
  background: var(--dcet-primary) !important;
  color: #ffffff !important;
}

.dcet-event-pill.source-dropin,
.dcet-week-event.source-dropin {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(5, 150, 105, .18);
}

.dcet-event-pill.source-training,
.dcet-week-event.source-training {
  background: #f97316 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .18);
}

.dcet-week-event em,
.dcet-week-event span {
  color: rgba(255,255,255,.86) !important;
}

.source-card-main .dcet-date-badge,
.dcet-list-card.source-card-main .dcet-card-actions button,
.dcet-list-card.source-card-main .dcet-card-actions a {
  background: var(--dcet-primary) !important;
  color: #ffffff !important;
}

.source-card-dropin .dcet-date-badge,
.dcet-list-card.source-card-dropin .dcet-card-actions button,
.dcet-list-card.source-card-dropin .dcet-card-actions a {
  background: #059669 !important;
  color: #ffffff !important;
}

.source-card-training .dcet-date-badge,
.dcet-list-card.source-card-training .dcet-card-actions button,
.dcet-list-card.source-card-training .dcet-card-actions a {
  background: #f97316 !important;
  color: #ffffff !important;
}

.dcet-list-card.source-card-main { border-left: 6px solid var(--dcet-primary); }
.dcet-list-card.source-card-dropin { border-left: 6px solid #059669; }
.dcet-list-card.source-card-training { border-left: 6px solid #f97316; }

.dcet-registration-status {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--dcet-line);
  background: var(--dcet-soft);
}

.dcet-registration-status strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.dcet-registration-status span {
  color: var(--dcet-muted);
  font-weight: 700;
}

.dcet-registration-status.required {
  border-color: color-mix(in srgb, var(--dcet-primary) 35%, var(--dcet-line));
  background: color-mix(in srgb, var(--dcet-primary) 7%, #fff);
}

.dcet-registration-status.required strong {
  color: var(--dcet-primary);
}

.dcet-registration-status.no-registration {
  border-color: color-mix(in srgb, #059669 32%, var(--dcet-line));
  background: color-mix(in srgb, #059669 7%, #fff);
}

.dcet-registration-status.no-registration strong {
  color: #047857;
}

.dcet-registration-status .dcet-register-button {
  justify-self: start;
  margin-top: 4px;
}

.dcet-registration-box[hidden] {
  display: none !important;
}

/* Disciple Coach visual edition: isolated styles (no other theme pages affected). */
.dcet-calendar-shell {--dcet-ink:#142b49;--dcet-muted:#596b80;--dcet-line:#deebf5;--dcet-soft:#f5f9fe;max-width:100%;padding:0 0 24px;}
.dcet-calendar-hero {background:linear-gradient(118deg,#073777 0%,#0b56ab 73%,#116aba 100%);color:#fff;border:0;border-radius:22px;padding:30px 34px;box-shadow:0 16px 35px rgba(8,53,110,.14);}
.dcet-calendar-hero h2,.dcet-calendar-hero p:not(.dcet-eyebrow),.dcet-eyebrow {color:#fff;}
.dcet-calendar-hero p:not(.dcet-eyebrow){opacity:.88;}
.dcet-eyebrow{opacity:.8;}
.dcet-hero-today {border-radius:15px;}
.dcet-calendar-toolbar,.dcet-month-grid,.dcet-week-view,.dcet-list-view{border-color:#deebf5;}
.dcet-event-pill,.dcet-week-event{border-radius:8px;}
.dcet-calendar-shell button:focus-visible,.dcet-calendar-shell a:focus-visible{outline:3px solid #16a9c6;outline-offset:3px;}
@media(max-width:700px){.dcet-calendar-hero{padding:23px 18px;border-radius:16px;}}
