.crch-shell,
.crch-links-only,
.crch-admin-wrap {
  --crch-bg: radial-gradient(circle at top right, rgba(255, 153, 51, 0.18), transparent 22%), linear-gradient(135deg, #090d18 0%, #0d1425 38%, #0b1020 100%);
  --crch-panel: rgba(10, 15, 28, 0.92);
  --crch-panel-2: rgba(16, 23, 41, 0.98);
  --crch-border: rgba(255, 255, 255, 0.08);
  --crch-border-strong: rgba(255, 156, 74, 0.24);
  --crch-text: #f8f7f3;
  --crch-muted: #a7b1c9;
  --crch-accent: #ff9a3c;
  --crch-accent-2: #ff6b2c;
  --crch-accent-soft: rgba(255, 154, 60, 0.16);
  --crch-glow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --crch-radius: 26px;
  color: var(--crch-text);
}

.crch-app {
  background: var(--crch-bg);
  border: 1px solid var(--crch-border);
  border-radius: 32px;
  padding: 22px;
  box-shadow: var(--crch-glow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.crch-app::before,
.crch-app::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
}

.crch-app::before {
  width: 240px;
  height: 240px;
  background: #ff9a3c;
  top: -90px;
  right: -60px;
}

.crch-app::after {
  width: 220px;
  height: 220px;
  background: #ff6b2c;
  bottom: -120px;
  left: -70px;
}

.crch-topbar,
.crch-stage,
.crch-main-head,
.crch-source-head,
.crch-mini-top,
.crch-admin-grid,
.crch-legend {
  display: flex;
  gap: 16px;
}

.crch-topbar,
.crch-main-head,
.crch-source-head,
.crch-mini-top {
  align-items: center;
  justify-content: space-between;
}

.crch-stage {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 300px;
  gap: 20px;
  align-items: start;
}

.crch-main {
  flex: 1 1 auto;
  min-width: 0;
}

.crch-side {
  width: auto;
  display: grid;
  gap: 16px;
  align-content: start;
}

.crch-title {
  margin: 4px 0 0;
  color: var(--crch-text);
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.crch-eyebrow,
.crch-side-kicker,
.crch-source-meta,
.crch-modal-meta,
.crch-mini-meta {
  color: var(--crch-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crch-month-label {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1;
}

.crch-top-actions,
.crch-view-switch,
.crch-filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.crch-btn,
.crch-view-btn,
.crch-pill,
.crch-modal-close {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: var(--crch-text);
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.crch-btn:hover,
.crch-view-btn:hover,
.crch-pill:hover,
.crch-modal-close:hover,
.crch-cell:hover,
.crch-day-event:hover,
.crch-agenda-item:hover,
.crch-mini-card:hover,
.crch-source-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.14);
}

.crch-view-btn.is-active,
.crch-pill.is-active,
.crch-btn:not(.ghost) {
  background: linear-gradient(135deg, var(--crch-accent) 0%, var(--crch-accent-2) 100%);
  color: #fff7ef;
  border-color: transparent;
  box-shadow: 0 16px 38px rgba(255, 122, 44, 0.28);
}

.crch-calendar-wrap,
.crch-side-card,
.crch-panel,
.crch-source-card,
.crch-mini-card {
  background: var(--crch-panel);
  border: 1px solid var(--crch-border);
  border-radius: var(--crch-radius);
  box-shadow: var(--crch-glow);
}

.crch-calendar-wrap,
.crch-panel { padding: 22px; }
.crch-side-card,
.crch-source-card,
.crch-mini-card { padding: 22px; }

.crch-weekdays,
.crch-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.crch-weekdays {
  margin-bottom: 10px;
  color: var(--crch-muted);
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em;
}

.crch-cell {
  min-height: 118px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--crch-panel-2);
  padding: 14px 12px 12px;
  text-align: left;
  color: var(--crch-text);
  position: relative;
  overflow: visible;
}

.crch-cell.is-outside { opacity: 0.42; }
.crch-cell.is-selected { outline: 2px solid rgba(255, 154, 60, 0.92); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 0 4px rgba(255,154,60,0.12); }
.crch-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 0 0 1px rgba(255, 154, 60, 0.26);
}

.crch-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.crch-cell-head > span {
  font-size: 1.15rem;
  font-weight: 700;
}

.crch-cell-head em {
  font-style: normal;
  color: var(--crch-muted);
  font-size: 12px;
}

.crch-cell-events {
  display: grid;
  gap: 6px;
}

.crch-event-chip {
  --accent: #8aa0ff;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.06);
}

.crch-event-chip i,
.crch-day-event-bar,
.crch-dot,
.crch-agenda-accent {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.crch-event-chip b {
  font-weight: 700;
  color: #dbe5ff;
}

.crch-event-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.crch-more,
.crch-empty,
.crch-mini-link.disabled {
  color: var(--crch-muted);
  font-size: 12px;
}

.crch-agenda {
  display: grid;
  gap: 12px;
}

.crch-agenda-item,
.crch-day-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--crch-text);
  text-align: left;
}

.crch-agenda-accent,
.crch-day-event-bar { width: 12px; height: 46px; border-radius: 12px; }
.crch-day-event-main,
.crch-agenda-main { display: grid; }
.crch-day-event small,
.crch-agenda-item small,
.crch-mini-card p,
.crch-source-card p { color: var(--crch-muted); }

.crch-side-date { margin: 8px 0 0; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 0.98; letter-spacing: -0.05em; }
.crch-day-events,
.crch-side-links,
.crch-source-grid,
.crch-fallback-list { display: grid; gap: 12px; }
.crch-source-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.crch-badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(255, 154, 60, 0.12);
  color: var(--crch-text);
}

.crch-source-actions,
.crch-modal-actions { margin-top: 14px; }
.crch-mini-link,
.crch-source-actions a { color: #ffd2ab; text-decoration: none; font-weight: 700; }

.crch-mini-card,
.crch-source-card,
.crch-panel {
  position: relative;
  overflow: visible;
}

.crch-mini-card::before,
.crch-source-card::before,
.crch-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

.crch-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.crch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 12, 0.78);
  backdrop-filter: blur(10px);
}

.crch-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px));
  background: linear-gradient(135deg, rgba(17,25,45,0.98), rgba(10,14,25,0.98));
  color: var(--crch-text);
  border: 1px solid var(--crch-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.55);
}

.crch-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
}

.crch-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.06);
  color: var(--crch-text);
}

.crch-modal-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent, #8aa0ff);
  box-shadow: 0 0 18px var(--accent, #8aa0ff);
}

.crch-modal-line { margin-top: 12px; line-height: 1.6; color: #d8e1ff; }
.crch-modal-open { overflow: hidden; }

.crch-admin-grid { align-items: stretch; }
.crch-admin-grid > * { flex: 1 1 0; }
.crch-panel { margin: 18px 0; }
.crch-legend span { display: inline-flex; align-items: center; gap: 8px; }
.crch-legend i { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.crch-fallback-item { display: flex; gap: 10px; align-items: flex-start; }
.crch-dot { margin-top: 6px; }
.crch-disabled {
  padding: 16px;
  border-radius: 18px;
  background: #10182b;
  color: #fff;
}

@media (max-width: 1100px) {
  .crch-stage { flex-direction: column; }
  .crch-side { width: 100%; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .crch-app { padding: 16px; border-radius: 24px; }
  .crch-topbar,
  .crch-main-head,
  .crch-admin-grid { flex-direction: column; align-items: stretch; }
  .crch-side { grid-template-columns: 1fr; }
  .crch-weekdays, .crch-grid { gap: 6px; }
  .crch-cell { min-height: 110px; padding: 10px; border-radius: 18px; }
  .crch-event-chip { grid-template-columns: auto 1fr; }
  .crch-event-chip b { display: none; }
}

@media (max-width: 620px) {
  .crch-weekdays { font-size: 11px; }
  .crch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crch-weekdays { display: none; }
  .crch-cell { min-height: 140px; }
}

.crch-modal.is-hidden { display: none; }
.crch-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.crch-modal-backdrop { z-index: 1; }
.crch-modal-card { position: relative; z-index: 2; max-height: min(85vh, 900px); overflow: auto; }
[hidden] { display: none !important; }


.crch-stage-clean { align-items: start; }
.crch-side-clean { width: auto; grid-template-columns: 1fr; }
@media (max-width: 1100px) { .crch-stage-clean { grid-template-columns: 1fr; } .crch-side-clean { width: 100%; } }

.crch-shell{max-width:1360px;margin:0 auto;}
.crch-calendar-wrap{min-width:0;}
.crch-main-head{gap:18px;align-items:flex-end;}
.crch-filter-bar{justify-content:flex-end;}
.crch-pill span{width:8px;height:8px;border-radius:999px;display:inline-block;margin-right:8px;box-shadow:0 0 12px currentColor;}
.crch-side-card{position:sticky;top:24px;}
.crch-day-event,.crch-agenda-item{padding:16px 16px;border-radius:20px;background:linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.035));}
.crch-day-event strong,.crch-agenda-item strong{font-size:1.02rem;line-height:1.2;}
.crch-modal-card h3{font-size:2rem;line-height:1;letter-spacing:-0.03em;margin:0 0 8px;}
@media (max-width: 900px){.crch-main-head{align-items:stretch;}.crch-filter-bar{justify-content:flex-start;}.crch-month-label{font-size:1.55rem;}.crch-cell{min-height:126px;}}

.crch-side-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.crch-mini-add{appearance:none;border:1px solid rgba(255,154,60,.22);background:rgba(255,154,60,.12);color:var(--crch-text);width:38px;height:38px;border-radius:14px;font-size:1.2rem;cursor:pointer;box-shadow:0 10px 24px rgba(255,122,44,.16);}
.crch-mini-add:hover{transform:translateY(-2px);background:rgba(255,154,60,.18);}
.crch-form{display:grid;gap:18px;margin-top:18px;}
.crch-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.crch-form label{display:grid;gap:8px;color:var(--crch-muted);font-size:.95rem;}
.crch-form label span{font-weight:600;color:var(--crch-text);font-size:.92rem;}
.crch-form input,.crch-form select,.crch-form textarea{width:100%;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05);color:var(--crch-text);padding:12px 14px;outline:none;box-sizing:border-box;}
.crch-form input:focus,.crch-form select:focus,.crch-form textarea:focus{border-color:rgba(255,154,60,.55);box-shadow:0 0 0 3px rgba(255,154,60,.12);}
.crch-form-wide{grid-column:1 / -1;}
.crch-form-error{padding:12px 14px;border-radius:14px;background:rgba(255,107,107,.14);border:1px solid rgba(255,107,107,.25);color:#ffd3d3;}
@media (max-width:820px){.crch-form-grid{grid-template-columns:1fr;}}


.crch-loading {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.crch-loading-card {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 15, 28, 0.88);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}

.crch-loading-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--crch-text);
  margin-bottom: 12px;
}

.crch-loading-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

.crch-loading-bar > span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--crch-accent) 0%, var(--crch-accent-2) 100%);
  box-shadow: 0 0 22px rgba(255,154,60,0.32);
  animation: crchSyncBar 1.25s ease-in-out infinite;
}

.crch-loading-sub {
  margin-top: 12px;
  color: var(--crch-muted);
  font-size: 0.95rem;
}

@keyframes crchSyncBar {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(170%); }
  100% { transform: translateX(170%); }
}


.crch-cell, .crch-day-event, .crch-agenda-item { will-change: transform; }
.crch-cell:hover { transform: translateY(-2px) scale(1.01); }
