    #calendar-view .band-chip {
      height: auto;
      min-height: 28px;
      padding: 4px 12px;
      font-size: 14px;
      line-height: 1.2;
    }

    .cal-band-title {
      min-width: 0;
    }

    .cal-nav-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }

    .cal-period {
      margin: 0;
      color: #fff;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
      line-height: 1.2;
    }

    .cal-nav-btn {
      min-width: 44px;
      min-height: 44px;
      padding: 0 14px;
      font-size: 18px;
    }

    #cal-today-btn {
      min-height: 44px;
    }

    .cal-switch {
      display: flex;
      background: #2A2245;
      border-radius: 24px;
      padding: 3px;
    }

    .cal-switch-btn {
      min-height: 44px;
      border: 0;
      border-radius: 22px;
      background: transparent;
      color: #C9C1F2;
      font: 700 14px var(--font-body);
      padding: 0 14px;
      cursor: pointer;
    }

    .cal-switch-btn.is-on {
      background: #fff;
      color: #1B1530;
    }

    .cal-switch-btn:hover:not(.is-on) {
      color: #fff;
    }

    #calendar-view .page-band-sub {
      font-size: 14px;
    }

    .cal-stage {
      position: relative;
      z-index: 1;
      margin: -50px 32px 32px;
      min-width: 0;
    }

    .cal-stage.is-phone-week {
      touch-action: pan-y;
    }

    .cal-split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px;
      gap: 16px;
      align-items: start;
    }

    .cal-week-card,
    .cal-day-card,
    .cal-month-card,
    .cal-side,
    .cal-tray-card,
    .cal-empty {
      background: #fff;
      border-radius: 20px;
      min-width: 0;
    }

    .cal-week-card,
    .cal-month-card {
      padding: 8px;
    }

    .cal-day-card,
    .cal-side,
    .cal-tray-card {
      padding: 14px 16px;
    }

    .cal-empty {
      padding: 28px 20px;
      text-align: center;
    }

    .cal-empty-title {
      margin: 0 0 6px;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
    }

    .cal-empty-help {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .cal-week {
      display: grid;
      grid-template-columns: 168px repeat(7, minmax(0, 1fr));
      min-width: 0;
    }

    .cal-wh,
    .cal-dealer,
    .cal-cell {
      border-bottom: 1px solid #EFECF7;
      border-right: 1px solid #EFECF7;
      min-width: 0;
    }

    .cal-wh {
      padding: 10px 8px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
    }

    .cal-wh.is-today {
      color: var(--accent);
    }

    .cal-dealer {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
    }

    .cal-av {
      width: 36px;
      height: 36px;
      border-radius: 18px;
      color: #fff;
      font: 800 14px var(--font-body);
      display: flex;
      align-items: center;
      justify-content: center;
      flex: none;
    }

    .cal-dealer-name {
      font-size: 14px;
      font-weight: 800;
      line-height: 1.25;
    }

    .cal-slots-line {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 4px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .cal-slots {
      flex: 1;
      height: 6px;
      border-radius: 3px;
      background: var(--soft);
      overflow: hidden;
      min-width: 36px;
    }

    .cal-slots > span {
      display: block;
      height: 100%;
      background: var(--accent);
    }

    .cal-slots > span.is-over {
      background: var(--attention-strong);
    }

    .cal-cell {
      min-height: 92px;
      padding: 6px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      box-sizing: border-box;
    }

    .cal-cell.is-off {
      background: repeating-linear-gradient(135deg, #F4F2FB 0 6px, #fff 6px 12px);
    }

    .cal-off {
      margin-top: auto;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .cal-cell.is-fit-ok {
      background: #F0FAF4;
      outline: 2px solid #137A4B;
      outline-offset: -2px;
      border-radius: 10px;
    }

    .cal-cell.is-fit-warn {
      background: #FFF4D6;
      outline: 2px solid #E8B931;
      outline-offset: -2px;
      border-radius: 10px;
    }

    .cal-cell.is-fit-no {
      background: #F4F2FB;
      outline: 2px solid #D9D4EE;
      outline-offset: -2px;
      border-radius: 10px;
    }

    .cal-ev,
    .cal-mline,
    .cal-day-row,
    .cal-prow-main,
    .cal-mmore,
    .cal-mday {
      cursor: pointer;
    }

    .cal-ev {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      gap: 6px;
      width: 100%;
      box-sizing: border-box;
      min-height: 44px;
      border: 0;
      border-radius: 10px;
      padding: 8px;
      background: #ECE8FA;
      color: #3A20B5;
      text-align: left;
    }

    .cal-ev:hover,
    .cal-mline:hover,
    .cal-day-row:hover,
    .cal-prow-main:hover,
    .cal-mday:hover {
      filter: brightness(0.97);
    }

    .cal-ev.is-sale {
      background: #DDF3E7;
      color: #137A4B;
    }

    .cal-ev.is-clash,
    .cal-block.is-clash,
    .cal-ev.is-double,
    .cal-block.is-double,
    .cal-mline.is-double {
      box-shadow: inset 0 0 0 2px var(--attention-strong);
    }

    .cal-ev.is-warn,
    .cal-block.is-warn,
    .cal-mline.is-warn {
      border: 2px dashed #C4841D;
    }

    .cal-issue-tag {
      display: inline-flex;
      align-items: center;
      flex: none;
      margin-top: 2px;
      padding: 1px 6px;
      border-radius: 8px;
      font: 800 11px/1.4 var(--font-body);
      white-space: nowrap;
    }

    .cal-issue-tag.is-double {
      background: var(--attention-bg);
      color: var(--attention);
    }

    .cal-issue-tag.is-warn {
      background: var(--wait-bg);
      color: var(--wait);
    }

    .cal-issue-tag.is-agreed {
      background: #F4F2FB;
      color: #5E5873;
    }

    .cal-ev-main,
    .cal-block-time,
    .cal-block-name,
    .cal-mline,
    .cal-day-row-main,
    .cal-prow-when {
      font: 800 15px/1.3 var(--font-body);
    }

    .cal-ev-main {
      flex: 1;
      min-width: 0;
    }

    .cal-go {
      flex: none;
      font-size: 18px;
      font-weight: 800;
      line-height: 1.1;
      opacity: 0.75;
    }

    .cal-drag {
      cursor: grab;
    }

    .cal-drag-lift,
    .cal-drag-ghost {
      box-shadow: 0 8px 18px rgba(27, 21, 48, 0.18);
      transform: rotate(-2deg);
      z-index: 40;
    }

    .cal-daystrip {
      display: flex;
      gap: 6px;
      margin-bottom: 10px;
      overflow: hidden;
    }

    .cal-daystrip button {
      flex: 1;
      min-height: 44px;
      border: 0;
      border-radius: 14px;
      background: #fff;
      color: var(--text);
      font: 800 14px var(--font-body);
      cursor: pointer;
    }

    .cal-daystrip button.is-on {
      background: var(--accent);
      color: #fff;
    }

    .cal-phone-row + .cal-phone-row {
      border-top: 1px solid #EFECF7;
    }

    .cal-tray {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .cal-tray-card.is-dark {
      background: #1B1530;
      color: #fff;
    }

    .cal-kicker {
      margin: 0 0 8px;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 0.05em;
    }

    .cal-tray-card.is-dark .cal-kicker {
      color: #C9C1F2;
    }

    .cal-tray-card .cal-kicker {
      color: var(--muted);
    }

    .cal-tray-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .cal-tray-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
      border: 1.5px solid #E6E2F3;
      border-radius: 14px;
      padding: 12px 14px;
      background: #fff;
      color: #1B1530;
      text-align: left;
      font-size: 14px;
    }

    .cal-tray-item strong {
      font-size: 15px;
    }

    .cal-tray-item:hover {
      border-color: var(--accent);
    }

    .cal-tray-meta {
      color: var(--muted);
      font-size: 14px;
    }

    .cal-tray-hint,
    .cal-tray-empty {
      margin: 0;
      font-size: 14px;
      color: var(--muted);
    }

    .cal-tray-card.is-dark .cal-tray-hint,
    .cal-tray-card.is-dark .cal-tray-empty {
      color: #C9C1F2;
    }

    .cal-tray-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 6px;
    }

    .cal-tray-actions .btn-primary,
    .cal-tray-actions .btn-secondary,
    .cal-prow-actions .btn-primary,
    .cal-prow-actions .btn-secondary {
      min-height: 44px;
    }

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

    .cal-mhead,
    .cal-mgrid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
    }

    .cal-mhead {
      margin-bottom: 8px;
    }

    .cal-mhead span {
      padding: 0 6px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
    }

    .cal-mgrid {
      background: #F4F2FB;
      padding: 8px;
      border-radius: 14px;
    }

    .cal-mday {
      background: #fff;
      border-radius: 14px;
      min-height: 108px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      box-sizing: border-box;
      border: 1.5px solid transparent;
      text-align: left;
    }

    .cal-mday.outside {
      background: transparent;
    }

    .cal-mday.is-selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px #DCD5FB;
    }

    .cal-mday.is-clash,
    .cal-mday.is-double {
      box-shadow: inset 0 0 0 2px var(--attention-strong);
    }

    .cal-mday.is-selected.is-clash,
    .cal-mday.is-selected.is-double {
      box-shadow: inset 0 0 0 2px var(--attention-strong), 0 0 0 3px #DCD5FB;
    }

    .cal-mday.is-warn {
      border: 2px dashed #C4841D;
    }

    .cal-mday-top {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .cal-mnum {
      font-size: 14px;
      font-weight: 800;
    }

    .cal-mday.outside .cal-mnum {
      color: #B5AFC8;
    }

    .cal-mday.is-today .cal-mnum {
      color: var(--accent);
    }

    .cal-mdot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
    }

    .cal-mdot.sale { background: #137A4B; }
    .cal-mdot.open { background: #E8492F; }

    .cal-mline,
    .cal-mmore {
      border: 0;
      background: transparent;
      padding: 0;
      text-align: left;
      color: var(--text);
    }

    .cal-mline.is-clash {
      color: var(--attention);
    }

    .cal-mline {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px;
    }

    .cal-mmore {
      color: var(--accent);
      font: 800 14px var(--font-body);
      min-height: 32px;
    }

    .cal-mslots {
      margin-top: auto;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .cal-mslots .cal-slots {
      margin-bottom: 4px;
    }

    .cal-side h2 {
      margin: 2px 0 8px;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
    }

    .cal-prow {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 10px 0;
      border-top: 1px solid #EFECF7;
    }

    .cal-prow-main {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      width: 100%;
      border: 0;
      background: transparent;
      padding: 0;
      text-align: left;
      color: var(--text);
    }

    .cal-prow-meta,
    .cal-prow-dealer {
      font-size: 14px;
      color: var(--muted);
      font-weight: 600;
    }

    .cal-prow .status-pill {
      height: 28px;
      font-size: 14px;
    }

    .cal-prow-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .cal-open-day {
      width: 100%;
      min-height: 44px;
      margin-top: 8px;
    }

    .cal-sheet-close {
      align-self: flex-end;
      min-height: 44px;
      margin-bottom: 4px;
    }

    .cal-sheet-scrim {
      position: fixed;
      inset: 0;
      background: rgba(27, 21, 48, 0.45);
      z-index: 28;
    }

    .cal-day-list {
      display: flex;
      flex-direction: column;
    }

    .cal-day-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      width: 100%;
      min-height: 44px;
      border: 0;
      border-bottom: 1px solid #EFECF7;
      background: transparent;
      padding: 12px 4px;
      text-align: left;
      color: var(--text);
    }

    .cal-day-row-main {
      flex: 1;
      min-width: 0;
    }

    .cal-day-row-meta {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font: 600 14px/1.3 var(--font-body);
    }

    .cal-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin: 0 0 12px;
      padding: 0;
      list-style: none;
      font-size: 14px;
      font-weight: 700;
      color: var(--muted);
    }

    .cal-legend li {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .cal-flag {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
    }

    .cal-flag.upcoming { background: #4B2EDB; }
    .cal-flag.open { background: #E8B931; }
    .cal-flag.sale { background: #137A4B; }
    .cal-flag.demo { background: #8B78FF; }
    .cal-flag.other { background: #8A82A6; }

    .cal-day-layout {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      column-gap: 8px;
      width: 100%;
      min-width: 0;
    }

    .cal-hours-shared {
      position: sticky;
      left: 0;
      z-index: 2;
      height: 624px;
      margin-top: 52px;
      background: #fff;
    }

    .cal-cols {
      display: grid;
      grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
      gap: 8px;
      min-width: 0;
    }

    .cal-col-head {
      min-height: 44px;
      margin: 0 0 8px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      min-width: 0;
    }

    .cal-col-name,
    .cal-col-sub {
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      line-height: 1.25;
    }

    .cal-col-name {
      font-size: 15px;
      font-weight: 800;
    }

    .cal-col-name.none {
      color: var(--wait);
    }

    .cal-col-sub {
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
    }

    .cal-hours-local {
      display: none;
    }

    .cal-hour {
      position: absolute;
      left: 0;
      right: 0;
      transform: translateY(-50%);
      font-size: 14px;
      font-weight: 700;
      color: var(--muted);
      line-height: 1;
      white-space: nowrap;
    }

    .cal-track {
      position: relative;
      height: 624px;
      background-color: #F4F2FB;
      background-image: linear-gradient(to bottom, #E6E2F3 1px, transparent 1px);
      background-size: 100% 48px;
      border-bottom: 1px solid #E6E2F3;
      border-radius: 14px;
    }

    .cal-block {
      position: absolute;
      z-index: 2;
      overflow: hidden;
      border: 0;
      border-radius: 10px;
      padding: 6px 22px 6px 8px;
      background: #ECE8FA;
      color: #3A20B5;
      text-align: left;
      cursor: pointer;
      min-height: 44px;
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .cal-block:hover {
      filter: brightness(0.97);
    }

    .cal-block .cal-go {
      position: absolute;
      top: 6px;
      right: 6px;
    }

    .cal-block.upcoming,
    .cal-block.open {
      background: #ECE8FA;
      color: #3A20B5;
    }

    .cal-block.open {
      background: #FFF4D6;
      color: #7A5300;
    }

    .cal-block.sale {
      background: #DDF3E7;
      color: #137A4B;
    }

    .cal-block.demo {
      background: #ECE8FA;
      color: #3A20B5;
    }

    .cal-block.other {
      background: #F4F2FB;
      color: #5E5873;
    }

    .cal-block-time,
    .cal-block-name,
    .cal-block-city {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .cal-block-city {
      font: 600 14px/1.3 var(--font-body);
      opacity: 0.9;
    }

    .cal-overlap {
      display: inline-flex;
      align-self: flex-start;
      height: 18px;
      padding: 0 6px;
      border-radius: 9px;
      background: #1B1530;
      color: #fff;
      font-size: 14px;
      font-weight: 800;
      line-height: 18px;
    }

    .cal-day-scroll {
      min-width: 0;
      max-width: 100%;
      overflow-x: hidden;
    }

    #cal-day {
      min-width: 0;
      max-width: 100%;
    }

    .cal-more-popover {
      position: fixed;
      z-index: 40;
      min-width: 240px;
      max-width: min(360px, calc(100vw - 16px));
      max-height: 70vh;
      overflow: auto;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 8px 24px rgba(27, 21, 48, 0.16);
      padding: 8px;
    }

    .cal-more-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 8px 4px;
      border-bottom: 1px solid #EFECF7;
      font-size: 14px;
    }

    .cal-more-row:last-child {
      border-bottom: 0;
    }

    .cal-more-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .cal-more-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .cal-more-actions button {
      min-height: 44px;
    }

    #cal-event-menu button {
      min-height: 44px;
    }

    #cal-event-menu.has-requests {
      min-width: 280px;
      max-width: min(360px, calc(100vw - 16px));
    }

    #cal-event-menu .req-strip {
      margin-top: 6px;
    }

    #cal-event-menu .req-strip .btn-primary,
    #cal-event-menu .req-strip .btn-secondary {
      width: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      min-height: 44px;
      height: auto;
      padding: 0 18px;
      border-radius: 22px;
    }

    button.band-chip {
      border: 0;
      cursor: pointer;
      min-height: 44px;
      height: auto;
      padding: 0 14px;
    }

    button.band-chip.is-open {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }

    .band-chip.is-amber {
      background: var(--wait-bg);
      color: var(--wait);
    }

    .cal-issue-panel {
      position: relative;
      z-index: 2;
      margin: -36px 32px 16px;
      background: #fff;
      border-radius: 16px;
      padding: 14px 16px 6px;
    }

    #calendar-shell.has-issue-panel .cal-stage {
      margin-top: 0;
    }

    .cal-issue-panel h2 {
      margin: 0 0 4px;
      font-family: var(--font-display);
      font-size: 18px;
    }

    .cal-issue-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      border-top: 1px solid #EFECF7;
    }

    .cal-issue-copy {
      min-width: 0;
      flex: 1 1 220px;
    }

    .cal-issue-name,
    .cal-issue-why {
      margin: 0;
    }

    .cal-issue-name {
      font-weight: 800;
    }

    .cal-issue-why.is-double {
      color: var(--attention);
      font-weight: 800;
    }

    .cal-issue-why.is-warn {
      color: var(--wait);
      font-weight: 800;
    }

    .cal-issue-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .cal-issue-actions .btn-primary,
    .cal-issue-actions .btn-secondary {
      min-height: 44px;
    }

    .band-chip.is-soft {
      background: #2A2245;
      color: #FFB4A2;
    }

    @media (max-width: 1100px) {
      .cal-stage {
        margin: -36px 16px 24px;
      }

      .cal-issue-panel {
        margin: -24px 16px 12px;
      }

      .cal-split,
      .cal-month-layout {
        grid-template-columns: 1fr;
      }

      .cal-week {
        grid-template-columns: 132px repeat(7, minmax(0, 1fr));
      }
    }

    @media (max-width: 759px) {
      .cal-stage {
        margin: -28px 12px 24px;
      }

      .cal-issue-panel {
        margin: -16px 12px 12px;
      }

      .cal-period {
        font-size: 18px;
      }

      .cal-switch-btn {
        padding: 0 10px;
      }

      .cal-mline,
      .cal-mmore,
      .cal-mslots {
        display: none;
      }

      .cal-mday {
        min-height: 52px;
        padding: 8px;
      }

      .cal-month-layout {
        display: block;
      }

      .cal-side {
        display: none;
      }

      .cal-side.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        max-height: 78vh;
        overflow: auto;
        margin: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 30px rgba(27, 21, 48, 0.2);
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
      }

      body.has-app-tabs .cal-side.is-open {
        bottom: 96px;
      }

      .cal-day-layout {
        display: block;
        width: 100%;
      }

      .cal-hours-shared {
        display: none;
      }

      .cal-cols {
        display: flex;
        flex-direction: column;
        gap: 18px;
      }

      .cal-col-body {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 6px;
      }

      .cal-hours-local {
        display: block;
        position: relative;
        height: 624px;
      }
    }

    /* ---------- CA1: week by dealer (G-Calendar-Week) ---------- */
    @media (min-width: 1101px) {
      .cal-split { grid-template-columns: minmax(0, 1fr) 300px; }
    }

    .cal-week-card { padding: 0; overflow: hidden; }

    .cal-week-scroll { overflow-x: auto; }

    .cal-week { grid-template-columns: 200px repeat(7, minmax(96px, 1fr)); }

    .cal-week .cal-wh {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #fff;
      border-bottom: 1.5px solid var(--border);
      font-size: 13px;
    }

    .cal-week .cal-dealer {
      position: sticky;
      left: 0;
      z-index: 1;
      background: #fff;
      border-right: 1.5px solid var(--border);
    }

    .cal-week .is-alt,
    .cal-week .cal-dealer.is-alt { background: #FAF9FD; }

    .cal-week .cal-cell { min-height: 72px; gap: 4px; cursor: pointer; }

    .cal-week .cal-cell.is-today { box-shadow: inset 0 3px 0 var(--accent); }

    .cal-week .cal-cell.is-off { background: #F7F6FB; }

    .cal-dealer-text { min-width: 0; }

    .cal-dealer-name { font-size: 15px; }

    .cal-dealer-sub {
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
    }

    .cal-avail {
      align-self: flex-start;
      padding: 4px 6px;
      border-radius: 8px;
      font: 700 12px/1.3 var(--font-body);
    }

    .cal-avail.is-free,
    .cal-avail.is-partly { background: #EAF7F0; color: #137A4B; }

    .cal-avail.is-full { background: var(--attention-bg); color: var(--attention); }

    .cal-avail.is-off,
    .cal-avail.is-unknown { background: #F1EFF6; color: #6F6886; }

    .cal-slot {
      flex-direction: column;
      gap: 1px;
      min-height: 0;
      padding: 5px 7px;
      font-size: 13px;
      line-height: 1.25;
      color: var(--text);
    }

    .cal-slot-time { font-size: 13px; font-weight: 800; }

    .cal-slot-who {
      display: flex;
      align-items: center;
      gap: 2px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cal-slot-who .product-dot { margin-right: 4px; }

    .cal-slot.is-needs-outcome {
      background: var(--wait-bg);
      box-shadow: inset 0 0 0 1.5px #E8A400;
    }

    .cal-slot-tag {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      color: var(--wait);
    }

    .cal-week-filters {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding: 12px 14px;
      border-bottom: 1.5px solid var(--border);
    }

    .cal-filter-chip {
      min-height: 34px;
      padding: 0 12px;
      border-radius: 17px;
      border: 1.5px solid var(--border-strong);
      background: #fff;
      color: var(--text);
      font: 700 13px var(--font-body);
      cursor: pointer;
    }

    .cal-filter-chip.is-on {
      background: var(--product, var(--accent));
      border-color: var(--product, var(--accent));
      color: #fff;
    }

    .cal-filter-spacer { flex: 1; }

    .cal-filter-count {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .cal-week-help {
      margin: 0;
      padding: 10px 14px;
      color: var(--muted);
      font-size: 13px;
    }

    /* Popovers: Who's free and Give to… */
    .cal-pop {
      position: absolute;
      z-index: 60;
      padding: 12px 14px 10px;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 12px 32px rgba(27, 21, 48, 0.22);
      box-sizing: border-box;
    }

    .cal-pop-close {
      position: absolute;
      top: 6px;
      right: 8px;
      width: 32px;
      height: 32px;
      border: 0;
      background: none;
      color: var(--muted);
      font-size: 20px;
      cursor: pointer;
    }

    .cal-pop-title {
      margin: 0 32px 8px 0;
      font-weight: 800;
      font-size: 14px;
    }

    .cal-pop-empty {
      margin: 0 0 6px;
      color: var(--muted);
      font-size: 14px;
    }

    .cal-pop-line {
      display: flex;
      flex-direction: column;
      padding: 6px 0;
      border-top: 1px solid var(--border);
      font-size: 14px;
    }

    .cal-pop-line span { color: var(--muted); font-size: 13px; }

    .cal-give-option {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 48px;
      padding: 6px 8px;
      border: 0;
      border-radius: 10px;
      background: none;
      text-align: left;
      font: inherit;
      cursor: pointer;
    }

    .cal-give-option:hover,
    .cal-give-option:focus-visible { background: var(--soft); }

    .cal-give-text { display: flex; flex-direction: column; min-width: 0; }

    .cal-give-text b { font-size: 14px; }

    .cal-give-text span { color: var(--muted); font-size: 12px; }

    .cal-give-option.is-warn .cal-give-text span { color: var(--wait); }

    .cal-pop-other { margin-top: 6px; font-size: 13px; }

    /* Tray */
    .cal-tray-day {
      margin: 6px 0 0;
      color: #C9C1F2;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .cal-tray-best { font-size: 12px; color: #C9C1F2; }

    .cal-fix-line {
      display: block;
      width: 100%;
      margin: 0 0 6px;
      min-height: 36px;
      padding: 0 12px;
      border: 0;
      border-radius: 18px;
      font: 800 13px var(--font-body);
      text-align: left;
      cursor: pointer;
    }

    .cal-fix-line.is-coral { background: var(--attention-bg); color: var(--attention); }

    .cal-fix-line.is-amber { background: var(--wait-bg); color: var(--wait); }

    .cal-fix-why {
      margin: 0 0 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .cal-key-line {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 13px;
    }

    .cal-jump input {
      height: 40px;
      margin: 0;
      padding: 0 10px;
      border-radius: 20px;
      border: 1.5px solid var(--band-line);
      background: transparent;
      color: #fff;
      font: 700 13px var(--font-body);
      color-scheme: dark;
    }

    /* ---------- CA1: month heat map (G-Calendar-Month) ---------- */
    .cal-mday.cal-heat {
      align-items: flex-start;
      gap: 0;
      min-height: 104px;
      cursor: pointer;
    }

    .cal-heat.is-heat-0 { background: #fff; }
    .cal-heat.is-heat-1 { background: #ECE8FA; }
    .cal-heat.is-heat-2 { background: #D3C9F7; }
    .cal-heat.is-heat-3 { background: #9F8CEF; color: #fff; }
    .cal-heat.is-heat-4 { background: #5B3FDF; color: #fff; }

    .cal-heat.outside { opacity: 0.45; }

    .cal-heat.is-heat-3 .cal-mnum,
    .cal-heat.is-heat-4 .cal-mnum,
    .cal-heat.is-heat-3 .cal-heat-sub,
    .cal-heat.is-heat-4 .cal-heat-sub { color: #fff; }

    .cal-heat-count {
      margin-top: 6px;
      font-family: var(--font-display);
      font-size: 26px;
      font-weight: 800;
      line-height: 1;
    }

    .cal-heat-noun { font-size: 12px; font-weight: 700; }

    .cal-heat-sub { margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }

    .cal-heat.is-needs { box-shadow: inset 0 0 0 2.5px var(--attention-strong); }

    .cal-heat-needs {
      margin-top: 4px;
      padding: 1px 6px;
      border-radius: 8px;
      background: var(--attention-strong);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
    }

    .cal-heat-legend {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 14px;
      padding: 10px 8px 4px;
      color: var(--muted);
      font-size: 13px;
    }

    .cal-heat-ramp { display: inline-flex; gap: 2px; }

    .cal-heat-ramp i {
      width: 18px;
      height: 12px;
      border-radius: 3px;
      border: 1px solid var(--border);
    }

    .cal-heat-ramp .is-heat-0 { background: #fff; }
    .cal-heat-ramp .is-heat-1 { background: #ECE8FA; }
    .cal-heat-ramp .is-heat-2 { background: #D3C9F7; }
    .cal-heat-ramp .is-heat-3 { background: #9F8CEF; }
    .cal-heat-ramp .is-heat-4 { background: #5B3FDF; }

    .cal-heat-key-needs {
      padding: 2px 8px;
      border-radius: 8px;
      box-shadow: inset 0 0 0 2px var(--attention-strong);
      color: var(--text);
      font-weight: 700;
    }

    .cal-heat-note { flex-basis: 100%; }

    @media (max-width: 1100px) {
      .cal-week { grid-template-columns: 160px repeat(7, minmax(92px, 1fr)); }
    }

    @media (max-width: 759px) {
      .cal-mday.cal-heat { min-height: 64px; padding: 6px; }
      .cal-heat-count { font-size: 18px; }
      .cal-heat-noun,
      .cal-heat-sub,
      .cal-heat-needs { display: none; }
      .cal-jump { display: none; }
    }

    /* DT1: an offer by text on a Needs a dealer demo */
    .cal-tray-offer { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 4px; }
    .cal-tray-offer.is-ended { color: var(--attention); }
