/* Reusable Swimlane Calendar Component Styles (Single Source of Truth)
 * Dark-mode defaults per ui-minimalism.md: Noto Sans, zero painted scrollbars, high-contrast bars,
 * ultra-compact grid with module title + compact Today button in top-left cell, no extra header row.
 */

.sc-cal-card {
  --sc-col-w: 34px;
  --sc-roster-w: 188px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px 0;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-2, rgba(255, 255, 255, 0.16));
  background: var(--surface, #111521);
  overflow: hidden;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text, #eef2fa);
}

.sc-cal-card,
.sc-cal-card * {
  scrollbar-width: none;
}

.sc-cal-card::-webkit-scrollbar,
.sc-cal-card *::-webkit-scrollbar {
  display: none;
}

.sc-cal-card [hidden] {
  display: none !important;
}

.sc-cal-empty {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 6px;
}

.sc-cal-empty-title {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text, #eef2fa);
}

.sc-cal-shell {
  display: flex;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0c1019;
  overflow: hidden;
  align-items: stretch;
}

/* Sticky left roster column */
.sc-cal-roster {
  flex: 0 0 var(--sc-roster-w, 188px);
  width: var(--sc-roster-w, 188px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: #101524;
  z-index: 2;
}

/* Top-left corner cell: module title + compact Today & All buttons side-by-side (never wraps) */
.sc-cal-roster-head {
  height: 36px;
  padding: 0 5px 0 7px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  background: #101625;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

.sc-cal-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text, #eef2fa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-cal-head-btns {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
}

.sc-cal-year-btns {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
}

.sc-cal-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #b7c4da;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  padding: 3px 5px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.sc-cal-btn:hover {
  background: rgba(92, 209, 255, 0.18);
  border-color: rgba(92, 209, 255, 0.55);
  color: #eef6ff;
}

.sc-cal-btn-now {
  background: linear-gradient(180deg, #ffe999 0%, #f5b93b 52%, #d98c12 100%);
  border-color: #fff2be;
  color: #1a1102;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 0 8px rgba(255, 205, 86, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sc-cal-btn-now:hover {
  background: linear-gradient(180deg, #fff1b8 0%, #f8c54c 52%, #e09619 100%);
  border-color: #ffffff;
  color: #140d01;
  box-shadow: 0 0 11px rgba(255, 212, 102, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sc-cal-btn-year,
.sc-cal-btn-all {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.17);
  color: #aebcd4;
}

.sc-cal-btn.is-active {
  background: linear-gradient(180deg, #ffe58a 0%, #e0a62e 100%);
  border-color: #ffe58a;
  color: #161005;
  box-shadow: 0 0 8px rgba(255, 208, 92, 0.55);
}

.sc-cal-row-cell {
  height: 26px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
}

.sc-cal-row-cell:last-child {
  border-bottom: none;
}

.sc-cal-row-name {
  font-size: 13.5px;
  font-weight: 650;
  color: #edf2fb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-cal-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f0ad4e;
  color: #161005;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.sc-cal-q-icon.is-badge {
  width: 12px;
  height: 12px;
  font-size: 9px;
}

.sc-cal-q-icon.is-bar {
  width: 13px;
  height: 13px;
  font-size: 9.5px;
}

.sc-cal-row-badge {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  color: #c5d0e3;
  background: rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}

.sc-cal-row-badge.is-viz,
.sc-cal-row-badge.is-ok,
.sc-cal-row-badge.is-active {
  color: #d7ffeb;
  background: #14543d;
}

.sc-cal-row-badge.is-uncertain,
.sc-cal-row-badge.is-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffe3b0;
  background: #5b3b12;
  border: 1px dashed #e2a43b;
}

/* Strictly contained inner horizontal scroller */
.sc-cal-scroll {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}

.sc-cal-scroll:active {
  cursor: grabbing;
}

.sc-cal-track {
  position: relative;
}

.sc-cal-days-head {
  position: relative;
  display: flex;
  height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #101625;
  box-sizing: border-box;
}

.sc-cal-month-col {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding-left: 5px;
  overflow: hidden;
  position: relative;
}

.sc-cal-month-col.is-month-start {
  border-left: 1px solid rgba(102, 217, 255, 0.35);
}

.sc-cal-month-label {
  font-size: 11px;
  font-weight: 750;
  color: #9fd8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-cal-day-col {
  flex: 0 0 var(--sc-col-w, 34px);
  width: var(--sc-col-w, 34px);
  height: 100%;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  position: relative;
}

.sc-cal-day-col.is-weekend {
  background: rgba(255, 255, 255, 0.02);
}

.sc-cal-day-col.is-month-start {
  border-left: 1px solid rgba(102, 217, 255, 0.35);
}

.sc-cal-day-col.is-today {
  background: linear-gradient(180deg, #ffe58a 0%, #f0b83a 42%, #c68314 100%);
  border-radius: 6px;
  border-right: 0;
  gap: 1px;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.78),
    inset 0 -2px 2px rgba(84, 42, 0, 0.55),
    inset 0 0 0 1px rgba(255, 238, 168, 0.7),
    0 4px 14px rgba(255, 198, 64, 0.75),
    0 1px 4px rgba(0, 0, 0, 0.65);
  z-index: 4;
}

.sc-cal-day-col.is-today.is-all-today {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  flex: none;
  width: 34px;
}

.sc-cal-today-tag {
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff6d1;
  text-shadow: 0 1px 1px rgba(52, 24, 0, 0.9);
  white-space: nowrap;
  pointer-events: none;
}

.sc-cal-today-now {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(52, 24, 0, 0.95), 0 0 6px rgba(255, 232, 148, 0.75);
  white-space: nowrap;
  pointer-events: none;
}

.sc-cal-day-mon {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 700;
  color: #7ee0ff;
  white-space: nowrap;
  pointer-events: none;
}

.sc-cal-days-head[data-today-mode="month-overlay"] .sc-cal-day-col.is-today .sc-cal-day-mon {
  position: static;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(52, 24, 0, 0.95), 0 0 6px rgba(255, 232, 148, 0.7);
}

.sc-cal-card.is-sc-all .sc-cal-scroll {
  overflow-x: hidden;
  cursor: default;
}

.sc-cal-card.is-sc-all .sc-cal-lane {
  background-image: none;
}

.sc-cal-days-head[data-today-mode="day"] .sc-cal-day-col.is-today .sc-cal-day-mon {
  color: #fff7d6;
  font-weight: 800;
}

.sc-cal-day-num {
  font-size: 12.5px;
  font-weight: 700;
  color: #e6ecf8;
  margin-top: 5px;
}

.sc-cal-day-col.is-today .sc-cal-day-num {
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(255, 216, 107, 0.85);
}

.sc-cal-day-wd {
  font-size: 9px;
  color: #9ba8c0;
}

.sc-cal-day-col.is-today .sc-cal-day-wd {
  color: #ffe89e;
  font-weight: 800;
}

.sc-cal-lanes {
  position: relative;
}

.sc-cal-lane {
  position: relative;
  height: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
  background-image: repeating-linear-gradient(
    to right,
    transparent,
    transparent calc(var(--sc-col-w, 34px) - 1px),
    rgba(255, 255, 255, 0.05) calc(var(--sc-col-w, 34px) - 1px),
    rgba(255, 255, 255, 0.05) var(--sc-col-w, 34px)
  );
}

.sc-cal-lane:last-child {
  border-bottom: none;
}

.sc-cal-card.is-sc-dim-past .sc-cal-day-col.is-past {
  opacity: 0.42;
  filter: saturate(0.25);
}

.sc-cal-past-veil {
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(6, 10, 18, 0.72) 0 8px,
    rgba(100, 116, 139, 0.42) 8px 16px
  );
  border-right: 2px dashed rgba(251, 191, 36, 0.85);
}

.sc-cal-past-label {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(203, 213, 225, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.sc-cal-today-guide {
  position: absolute;
  top: 36px;
  bottom: 0;
  width: var(--sc-col-w, 34px);
  box-sizing: border-box;
  background: rgba(255, 214, 92, 0.2);
  border-left: 2px solid #ffd86b;
  border-right: 2px solid #ffd86b;
  box-shadow: 0 0 14px rgba(255, 216, 107, 0.45), inset 0 0 10px rgba(255, 232, 158, 0.22);
  pointer-events: none;
  z-index: 3;
}

/* Contiguous swimlane stay bar pill */
.sc-cal-bar {
  position: absolute;
  top: 3px;
  height: 20px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 2px solid var(--bar-stripe, #2ee59d);
  background: var(--bar-bg, #114b36);
  color: var(--bar-text, #d7ffeb);
  cursor: pointer;
  z-index: 2;
  transition: filter 120ms ease;
}

.sc-cal-bar.is-chev {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.sc-cal-bar.is-chev-both {
  clip-path: polygon(0% 0%, calc(100% - 7px) 0%, 100% 50%, calc(100% - 7px) 100%, 0% 100%, 7px 50%);
  padding: 0 11px;
}

.sc-cal-bar.is-chev-right {
  clip-path: polygon(0% 0%, calc(100% - 7px) 0%, 100% 50%, calc(100% - 7px) 100%, 0% 100%);
  border-radius: 4px 0 0 4px;
  padding: 0 11px 0 6px;
}

.sc-cal-bar.is-chev-left {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 7px 50%);
  border-radius: 0 4px 4px 0;
  padding: 0 6px 0 11px;
}

.sc-chev-edge {
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.sc-chev-edge polyline {
  fill: none;
  stroke: rgba(248, 250, 252, 0.85);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snotcal2-cal-card .sc-chev-edge polyline {
  stroke: rgba(253, 224, 71, 0.9);
}

.sc-cal-bar.is-single {
  padding: 0 2px;
  font-size: 10px;
  letter-spacing: -0.02em;
}

.sc-cal-bar:hover {
  filter: brightness(1.16);
  z-index: 4;
}

.sc-cal-bar.is-tentative {
  border-style: dashed;
  opacity: 0.94;
}

.sc-cal-bar.is-unconfirmed {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 2px solid var(--bar-stripe, #c084fc);
  background-image: none;
  color: var(--bar-text, #f3e8ff);
}

.sc-cal-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-cal-bar.has-edge-dates {
  justify-content: space-between;
  gap: 6px;
}

.sc-cal-bar.has-edge-dates .sc-cal-bar-label {
  flex: 1 1 auto;
  text-align: center;
}

.sc-bar-edge {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.72;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.sc-cal-meta-foot {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 13px;
  color: #b4c0d4;
}

/* Compact Mode (default) */
.sc-cal-card.is-sc-compact {
  padding: 3px 6px;
}

.sc-cal-card.is-sc-compact .sc-cal-meta-foot {
  display: none;
}

.sc-cal-card.is-sc-compact .sc-cal-shell {
  max-height: none;
  overflow: hidden;
  align-items: stretch;
}

.sc-cal-card.is-sc-compact .sc-cal-roster-head,
.sc-cal-card.is-sc-compact .sc-cal-days-head {
  height: 28px;
}

.sc-cal-card.is-sc-compact .sc-cal-day-num {
  font-size: 11px;
  line-height: 1;
  margin-top: 8px;
}

.sc-cal-card.is-sc-compact .sc-cal-day-wd {
  font-size: 8px;
  line-height: 1;
}

.sc-cal-card.is-sc-compact .sc-cal-past-veil,
.sc-cal-card.is-sc-compact .sc-cal-today-guide {
  top: 28px;
}

.sc-cal-card.is-sc-compact .sc-cal-row-cell,
.sc-cal-card.is-sc-compact .sc-cal-lane {
  height: 22px;
}

.sc-cal-card.is-sc-compact .sc-cal-row-name {
  font-size: 13px;
}

.sc-cal-card.is-sc-compact .sc-cal-bar {
  top: 2px;
  height: 17px;
  font-size: 11px;
}

.sc-cal-card.is-sc-compact .sc-cal-bar.is-single {
  padding: 0 2px;
  font-size: 10.5px;
}

.sc-cal-card.is-sc-all .sc-cal-bar {
  padding: 0 3px;
  font-size: 10px;
}

.sc-cal-month-label.is-jan {
  color: #fde68a;
  font-weight: 800;
}

/* 3 equal-width clickable year blocks shown when All mode is active */
.sc-cal-year-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
  background: #0c1220;
}

.sc-cal-year-blocks[hidden] {
  display: none;
}

.sc-cal-year-block {
  appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.sc-cal-year-block:last-child {
  border-right: none;
}

.sc-cal-year-block:hover,
.sc-cal-year-block:focus-visible {
  background: rgba(253, 224, 71, 0.09);
  box-shadow: inset 0 0 0 1px rgba(253, 224, 71, 0.45);
  outline: none;
}

.sc-yb-head {
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #101625;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
}

.sc-cal-card.is-sc-compact .sc-yb-head {
  height: 28px;
}

.sc-yb-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fde68a;
}

.sc-yb-cta {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  opacity: 0.85;
  white-space: nowrap;
}

.sc-cal-year-block:hover .sc-yb-cta {
  color: #fff3c4;
  opacity: 1;
}

.sc-yb-lanes {
  display: flex;
  flex-direction: column;
}

.sc-yb-lane {
  position: relative;
  height: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
  overflow: hidden;
}

.sc-yb-lane:last-child {
  border-bottom: none;
}

.sc-cal-card.is-sc-compact .sc-yb-lane {
  height: 22px;
}

.sc-yb-seg {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 3px;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .sc-yb-head { padding: 0 5px; }
  .sc-yb-title { font-size: 12px; }
  .sc-yb-cta { display: none; }
}

/* Option 1: Pinned NOW + Swipeable Single-Letter Month Ribbon (publicMode) */
.sc-cal-month-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 5px 4px 0;
  background: #0d1524;
  border-bottom: 1px solid rgba(212, 189, 146, 0.28);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.sc-cal-month-ribbon[hidden] {
  display: none;
}

.sc-mr-now {
  flex: 0 0 36px;
  width: 36px;
  margin: 0 1px;
  padding: 5px 0;
  font-size: 10px;
  text-align: center;
  border-radius: 5px;
  position: relative;
  box-sizing: border-box;
}

.sc-mr-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.sc-mr-track::-webkit-scrollbar {
  display: none;
}

.sc-mr-year {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.55);
  color: #fde68a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  user-select: none;
}

.sc-mr-chip {
  flex: 0 0 auto;
  min-width: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.1;
  padding: 4px 6px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.sc-mr-plus {
  min-width: 26px;
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(8, 145, 178, 0.28);
  color: #a5f3fc;
  font-size: 14.5px;
  font-weight: 900;
}

.sc-cal-card.has-month-ribbon .sc-cal-bar.is-bbvs-available {
  background: linear-gradient(180deg, #0c7a8e 0%, #085568 100%);
  border-color: rgba(34, 211, 238, 0.55);
  border-bottom-color: #22d3ee;
  color: #f0fdff;
}

.sc-cal-card.has-month-ribbon .sc-cal-bar.is-bbvs-available .sc-bar-edge {
  color: #a5f3fc;
  opacity: 0.85;
}

.sc-cal-card.has-month-ribbon .sc-cal-bar.is-bbvs-available .sc-chev-edge polyline {
  stroke: rgba(165, 243, 252, 0.92);
}

.sc-mr-chip:hover {
  background: rgba(253, 224, 71, 0.14);
  border-color: rgba(253, 224, 71, 0.55);
  color: #fff6d6;
}

.sc-mr-chip.is-active {
  background: rgba(234, 179, 8, 0.24);
  border-color: #fde047;
  color: #fef08a;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.35);
}

.sc-mr-chip .sc-m-short,
.sc-yr-short,
.sc-row-short { display: inline-flex; align-items: center; gap: 3px; }
.sc-mr-chip .sc-m-full,
.sc-yr-full,
.sc-row-full { display: none; }
.sc-cal-card.has-month-ribbon { --sc-roster-w: 44px; }
.sc-cal-card.has-month-ribbon .sc-mr-now { width: 42px; min-width: 42px; }
@media (min-width: 768px) {
  .sc-cal-card.has-month-ribbon { --sc-roster-w: 80px; }
  .sc-cal-card.has-month-ribbon .sc-mr-now { width: 72px; min-width: 72px; font-size: 11.5px; }
  .sc-mr-chip:not(.sc-mr-plus) { min-width: 38px; padding: 0 9px; }
  .sc-mr-chip .sc-m-short,
  .sc-yr-short,
  .sc-row-short { display: none; }
  .sc-mr-chip .sc-m-full,
  .sc-yr-full,
  .sc-row-full { display: inline; }
  .sc-cal-card.has-month-ribbon .sc-cal-title { font-size: 13px; }
}

.sc-cal-card.has-month-ribbon .sc-cal-roster-head {
  justify-content: center;
  padding: 0 2px;
}

.sc-cal-card.has-month-ribbon .sc-cal-title {
  text-align: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #fde68a;
  flex: 0 1 auto;
}

.sc-cal-card.has-month-ribbon .sc-cal-row-cell {
  justify-content: center;
  padding: 0 2px;
}

.sc-cal-row-house {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.sc-house-ico {
  width: 18px;
  height: 17px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
  flex: 0 0 auto;
}

.sc-house-num {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.sc-row-full {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sc-cal-day-col.is-today-num {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sc-cal-today-num {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffe999 0%, #f5b93b 52%, #d98c12 100%);
  border: 1px solid #fff2be;
  color: #1a1102;
  box-shadow: 0 0 8px rgba(255, 205, 86, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  line-height: 1;
}

.sc-tn-d {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.sc-tn-w {
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .sc-cal-card {
    --sc-roster-w: 172px;
  }
  .sc-cal-row-name {
    font-size: 12px;
  }
}

/* visit dots (BBVS maintenance / cleaners / events): small, bottom edge of the lane, never a whole square */
.sc-cal-dot { position: absolute; bottom: 1px; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid #0b1220; box-shadow: 0 0 0 1px rgba(255,255,255,.35); box-sizing: border-box; z-index: 5; pointer-events: auto; }
.sc-cal-dot.is-legend { position: static; display: inline-block; margin-right: 5px; vertical-align: middle; }
.sc-cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 10px; font-size: 11px; opacity: .85; }
.sc-cal-legend-item { white-space: nowrap; }

/* Deterministic BON vs 3/3 BBVS villa occupancy conflict highlight on VizCal bars */
.sc-cal-bar.is-conflict {
  overflow: visible;
  border-color: rgba(255, 107, 91, 0.95);
  border-bottom-color: #ff6b5b;
  box-shadow: 0 0 0 1px rgba(255, 107, 91, 0.55), 0 0 10px rgba(255, 107, 91, 0.4);
  z-index: 4;
}
.sc-cal-conflict-icon {
  flex: 0 0 auto;
  color: #ffd166;
  font-size: 10px;
  line-height: 1;
}
.sc-cal-bar.is-single.is-conflict .sc-cal-conflict-icon {
  position: absolute;
  top: -5px;
  right: -4px;
  font-size: 9px;
  background: #230c0e;
  border-radius: 50%;
  padding: 0 1px;
  pointer-events: none;
}
