#twc-root *, #twc-modal * { box-sizing: border-box; }
#twc-root {
  font-family: 'proxima-nova', 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #F5EFE6;
  background: #26282A;
  padding: 0;
  border-radius: 8px;
  line-height: 1.4;
}

/* Nav / title */
.twc-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px; gap: 8px;
}
.twc-nav-label {
  font-size: 14px; font-weight: 800; color: #FFE900;
  text-align: center; flex: 1; letter-spacing: .14em; text-transform: uppercase;
  font-family: 'proxima-nova', 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.twc-nav-btn {
  background: none; border: 1px solid rgba(245,239,230,.25); color: #F5EFE6;
  border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  line-height: 1; transition: border-color .15s, color .15s;
}
.twc-nav-btn:hover:not(:disabled) { border-color: #FFE900; color: #FFE900; }
.twc-nav-btn:disabled { opacity: .3; cursor: default; }

/* Month grid */
.twc-months { display: grid; gap: 12px; }

/* Month column */
.twc-month {
  background: #1A1C1E; border-radius: 16px; padding: 14px; min-width: 0;
  border: 1px solid rgba(245,239,230,.09);
}
.twc-month-header {
  font-size: 12px; font-weight: 700; text-align: center; margin-bottom: 8px;
  color: #F5EFE6; letter-spacing: .08em; text-transform: uppercase;
  font-family: 'proxima-nova', 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Day-of-week headers */
.twc-dow { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 3px; }
.twc-dow div {
  text-align: center; font-size: 9px; font-weight: 600;
  letter-spacing: .06em; color: rgba(245,239,230,.3); padding-bottom: 2px;
}

/* Week */
.twc-week { margin-bottom: 1px; }
.twc-week-days { display: grid; grid-template-columns: repeat(7,1fr); }
.twc-day      { text-align: center; font-size: 11px; color: rgba(245,239,230,.65); padding: 3px 1px; }
.twc-day-out  { color: rgba(245,239,230,.15); }
.twc-day-wknd { color: rgba(245,239,230,.38); }

/* Camp bars */
.twc-bar-row { display: grid; grid-template-columns: repeat(7,1fr); margin-top: 2px; min-height: 26px; }
.twc-bar-row.twc-hidden { display: none; }
.twc-bar {
  border: 1px solid rgba(255,255,255,.2); cursor: pointer; min-height: 26px;
  padding: 2px 10px 2px 10px;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  overflow: hidden; min-width: 0; gap: 4px;
  font-family: 'proxima-nova', 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1A1C1E; text-align: left; transition: filter .1s;
}
.twc-bar-left {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; flex: 1;
}
.twc-bar:hover { filter: brightness(1.12); }

/* Greyed-out bars (In Process, Auditions Closed) */
.twc-bar-row-grey .twc-bar { opacity: .48; }
.twc-bar-row-grey .twc-bar:hover { filter: none; }

/* Shape + fade for multi-week continuations */
.twc-bar-solo  { border-radius: 18px; }
.twc-bar-start {
  border-radius: 18px 0 0 18px; border-right: none;
  -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
          mask-image: linear-gradient(to right, black 60%, transparent 100%);
}
.twc-bar-end   {
  border-radius: 0 18px 18px 0; border-left: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
          mask-image: linear-gradient(to right, transparent 0%, black 40%);
}
.twc-bar-mid   {
  border-radius: 0; border-left: none; border-right: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.twc-bar-name {
  font-size: 10px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2; display: block;
}
.twc-bar-ages {
  font-size: 8px; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.1; display: block; opacity: .7;
}
.twc-bar-status {
  font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0; opacity: .75;
}

/* Loading spinner */
.twc-spinner {
  width: 36px; height: 36px; margin: 48px auto;
  border: 3px solid rgba(255,233,0,.2);
  border-top-color: #FFE900;
  border-radius: 50%;
  animation: twc-spin .75s linear infinite;
}
@keyframes twc-spin { to { transform: rotate(360deg); } }

/* Error / empty message */
.twc-msg { text-align: center; padding: 40px 16px; color: rgba(245,239,230,.45); font-size: 14px; }

/* ── Legend — bottom, centered, checkboxes ─────────────────────────────── */
.twc-legend {
  display: flex; gap: 10px 14px; padding: 14px 0 16px;
  flex-wrap: wrap; justify-content: center; align-items: center;
  line-height: 1.2;
}
.twc-legend-item {
  display: flex; align-items: center; gap: 6px; font-size: 10px;
  cursor: pointer; user-select: none; color: #F5EFE6;
  transition: color .15s;
}
.twc-legend-item span:last-child {
  text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  font-family: 'proxima-nova', 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Checkbox — uses CSS variable --c set inline for the age group color */
.twc-legend-check {
  width: 13px; height: 13px; border-radius: 2px; flex-shrink: 0;
  border: 1.5px solid var(--c); background: var(--c);
  color: #1A1C1E; font-size: 9px; font-weight: 900; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}

/* Unchecked state — hollow square, dimmed label */
.twc-legend-item.twc-dim:not(.twc-legend-reset) { color: rgba(245,239,230,.4); }
.twc-legend-item.twc-dim:not(.twc-legend-reset) .twc-legend-check {
  background: transparent;
  color: transparent;
}

/* "Show All" reset button */
.twc-legend-reset {
  border: 1px solid rgba(245,239,230,.28); border-radius: 20px;
  padding: 3px 9px; gap: 5px; transition: border-color .15s, opacity .15s;
}
.twc-legend-reset:hover:not(.twc-dim) { border-color: rgba(245,239,230,.6); }
.twc-legend-reset .twc-reset-icon { font-size: 12px; line-height: 1; opacity: .8; }
.twc-legend-reset span:last-child { letter-spacing: .06em; }
.twc-legend-reset.twc-dim { opacity: .25; cursor: default; }

/* Modal */
#twc-modal {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(26,28,30,.88); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 16px;
}
#twc-modal.twc-open { display: flex; }
.twc-modal-box {
  background: #1A1C1E; border: 1px solid rgba(245,239,230,.12);
  border-radius: 12px; max-width: 420px; width: 100%;
  padding: 28px; position: relative; max-height: 90vh; overflow-y: auto;
  font-family: 'proxima-nova', 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.twc-modal-x {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: rgba(245,239,230,.45); font-size: 22px; cursor: pointer;
  line-height: 1; padding: 4px 8px; font-family: inherit;
}
.twc-modal-x:hover { color: #F5EFE6; }
.twc-modal-tag {
  display: inline-block; border-radius: 20px; padding: 0 16px;
  font-size: 10px; font-weight: 700; margin-bottom: 18px; color: #1A1C1E;
  text-transform: uppercase; letter-spacing: .06em;
}
.twc-modal-title {
  font-size: 20px; font-weight: 800; margin: 0 0 14px;
  color: #F5EFE6; line-height: 1.2;
}
.twc-modal-meta { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.twc-modal-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.twc-modal-lbl {
  color: rgba(245,239,230,.45); min-width: 70px; flex-shrink: 0;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-top: 1px;
}
.twc-modal-val { color: #F5EFE6; }
.twc-modal-desc {
  font-size: 13px; line-height: 1.65;
  color: rgba(245,239,230,.75); margin: 0 0 20px;
}
.twc-modal-cta {
  display: block; width: 100%; padding: 13px; border-radius: 6px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  text-align: center; text-decoration: none; border: none; cursor: pointer;
  background: #FFE900; color: #1A1C1E; transition: background .15s;
  text-transform: uppercase; letter-spacing: .06em;
}
.twc-modal-cta:hover { background: #fff176; }
.twc-modal-cta-off {
  background: rgba(245,239,230,.08); color: rgba(245,239,230,.35); cursor: default;
  text-transform: none; letter-spacing: 0;
}
.twc-modal-cta-off:hover { background: rgba(245,239,230,.08); }

@media (max-width: 639px) {
  .twc-modal-box { padding: 22px 18px; }
}
