@keyframes pisell-res-frc-marquee {
  0%,
  20% {
    transform: translateX(0);
  }

  80%,
  100% {
    transform: translateX(var(--scroll-dist, 0));
  }
}

.pisell-res-floor-room-card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;

  /**
   * 圆桌：整圆即卡片（状态色铺满圆盘），不再「外圆内方」。
   * 文案/图标沿圆心切主轴居中；弧边留白用 cqw/cqh；长内容在 body / multi-list 内滚动。
   */

  &[data-shape='circle'] {
    container-type: size;
    container-name: pisell-floor-room-card-circle;
    --rc-disc-pad: clamp(7px, 6.5cqmin, 18px);

    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* 由 .rc 铺色，避免出现白圈+内嵌方卡 */
    background: transparent;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;

    &:hover {
      box-shadow: var(--shadow-card-hover);
    }

    .rc {
      flex: 1;
      width: 100%;
      min-height: 0;
      border-radius: 50%;
      box-shadow: none;
      padding: var(--rc-disc-pad);
      gap: clamp(5px, 1.8cqmin, 10px);
      transition: none;
      overflow-x: hidden;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      -webkit-overflow-scrolling: touch;
    }

    .rc:hover {
      box-shadow: none;
      transform: none;
    }

    /* 中间主列：限制最大宽弦长，避免文字顶到左右弧边 */

    .rc-header,
    .rc-body,
    .rc-multi-list {
      width: 100%;
      max-width: 92%;
      min-height: 0;
    }

    @supports (width: 1cqw) {
      .rc-header,
      .rc-body,
      .rc-multi-list {
        max-width: min(92%, 88cqw);
      }

    }

    /* 单条占用右下角印章，底部留白避免与印章叠压 */

    .rc.rc--occupied:not(.rc--multi) {
      padding-bottom: clamp(60px, 16cqmin, 80px);
    }

    .rc-header {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .rc-header__left {
      flex: none;
      width: 100%;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }

    /**
     * 预订 / 占用：标题一行；Cap 与状态标签（已预订、使用中等）同一行居中
     */
    .rc.rc--occupied .rc-header,
    .rc.rc--reserved .rc-header {
      display: grid;
      grid-template-columns: 1fr auto auto 1fr;
      grid-template-rows: auto auto;
      align-items: center;
      column-gap: 6px;
      row-gap: 6px;
    }

    .rc.rc--occupied .rc-header .rc-header__left,
    .rc.rc--reserved .rc-header .rc-header__left {
      display: contents;
    }

    .rc.rc--occupied .rc-header .rc-room-name,
    .rc.rc--reserved .rc-header .rc-room-name {
      grid-column: 1 / -1;
      grid-row: 1;
    }

    .rc.rc--occupied .rc-header .rc-capacity,
    .rc.rc--reserved .rc-header .rc-capacity {
      grid-column: 2;
      grid-row: 2;
      justify-self: end;
    }

    .rc.rc--occupied .rc-header .rc-tag,
    .rc.rc--reserved .rc-header .rc-tag {
      grid-column: 3;
      grid-row: 2;
      justify-self: start;
    }

    .rc.rc--occupied .rc-header:not(:has(.rc-capacity)) .rc-tag,
    .rc.rc--reserved .rc-header:not(:has(.rc-capacity)) .rc-tag {
      grid-column: 1 / -1;
      grid-row: 2;
      justify-self: center;
    }

    .rc.rc--occupied .rc-header:not(:has(.rc-tag)) .rc-capacity,
    .rc.rc--reserved .rc-header:not(:has(.rc-tag)) .rc-capacity {
      grid-column: 1 / -1;
      grid-row: 2;
      justify-self: center;
    }

    .rc-room-name {
      font-size: clamp(12px, 4cqmin, 16px);
      font-weight: 700;
      white-space: normal;
      text-align: center;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      width: 100%;
    }

    .rc-capacity,
    .rc-tag {
      border-radius: 999px;
      font-size: 10px;
      padding: 3px 10px;
      flex-shrink: 0;
    }

    /* 正文区不抢满高度，整块随父级垂直居中；过长时再滚动 */

    .rc-body {
      flex: 0 1 auto;
      flex-grow: 0;
      align-items: center;
      gap: clamp(4px, 1.2cqmin, 8px);
      overflow-x: hidden;
      overflow-y: auto;
    }

    .rc-body--center {
      min-height: auto;
      flex: 1 1 auto;
      justify-content: center;
    }

    .rc-contact {
      font-size: clamp(11px, 3.2cqmin, 13px);
      justify-content: center;
      flex-wrap: wrap;
    }

    .rc-time-row {
      font-size: clamp(10px, 3.1cqmin, 12px);
      gap: 4px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .rc-amount {
      font-size: clamp(15px, 4.5cqmin, 20px);
      justify-content: center;
    }

    .rc-amount--with-badge {
      justify-content: center;
      flex-wrap: wrap;
      gap: 6px;
    }

    /**
     * 圆桌单条占用 + 已付：金额主行白字（与方桌占用一致），行内「付款」角标与方桌 .rc-stamp--paid 同色绿环。
     */
    .rc.rc--occupied:not(.rc--multi) .rc-amount.rc-highlight--paid,
    .rc.rc--occupied:not(.rc--multi) .rc-amount.rc-highlight--paid .rc-amount__main {
      color: #ffffff;
    }

    .rc-items-count {
      text-align: center;
      font-size: clamp(9px, 2.7cqmin, 11px);
      font-weight: 500;
    }

    .rc-next {
      padding-top: 6px;
      margin-top: 4px;
      justify-content: center;
      flex-wrap: wrap;
      font-size: clamp(10px, 2.9cqmin, 12px);
      max-width: 100%;
    }

    .rc-progress {
      width: 100%;
      max-width: 90%;
      margin-left: auto;
      margin-right: auto;
    }

    @supports (width: 1cqw) {
      .rc-progress {
        max-width: min(90%, 80cqw);
      }
    }

    /* 印章：与方桌默认尺寸一致（52px / 11px），仅位置按弧边内收 */

    .rc-stamp {
      width: 60px;
      height: 60px;
      left: auto;
      right: clamp(46px, 12.5cqmin, 66px);
      bottom: clamp(48px, 13cqmin, 68px);
      transform: rotate(-18deg);
    }

    .rc-stamp span {
      font-size: clamp(11px, 3.2cqmin, 12px);
      line-height: 1.2;
      padding: 0 2px;
      text-align: center;
    }

    /**
     * 多预约：父级 .rc 默认 justify-content:center 会在总高超过圆内可视区时上下对称溢出，
     * 底层 pisell-res-floor-room-card 又因圆形 clip 裁切，导致「查看全部」只剩上半截。
     * 改为顶对齐 + 列表区 flex 占满剩余高度并内部滚动，保证底栏可完整滚到。
     */

    .rc.rc--multi {
      justify-content: flex-start;
    }

    .rc-multi-list {
      flex: 1 1 auto;
      min-height: 0;
      margin: 0;
      padding: 0;
      gap: 6px;
      overflow-x: hidden;
      overflow-y: auto;
      align-items: stretch;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      overscroll-behavior-y: contain;
    }

    /* 圆内 compact 仅用于多预约：横向信息流 + 细分割，避免多块圆角矩形垒叠 */

    .rc-compact {
      width: 100%;
      max-width: 100%;
      padding: clamp(5px, 1.6cqmin, 8px) clamp(4px, 1.4cqmin, 10px);
      border-radius: 6px;
      gap: 4px;
    }

    .rc-compact__row {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      align-content: center;
      gap: 5px 8px;
      min-height: auto;
    }

    /* 中间区不再 flex:1 拉满宽，左中右缩成一块整体居中，换行后仍朝圆心对齐 */

    .rc-compact__left {
      flex: 0 1 auto;
      max-width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .rc-compact__middle {
      flex: 0 1 auto;
      min-width: 0;
      max-width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      mask-image: none;
      -webkit-mask-image: none;
    }

    .rc-compact__scroll {
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: normal;
      flex-wrap: wrap;
      text-align: center;
      font-size: clamp(9px, 2.8cqmin, 11px);
    }

    .rc-compact__right {
      flex: 0 1 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      text-align: center;
    }

    .rc-compact__right-stack {
      align-items: center;
    }

    .rc-compact__pay-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .rc-compact__items-count {
      font-size: clamp(9px, 2.7cqmin, 11px);
      font-weight: 500;
      text-align: center;
      line-height: 1.2;
      max-width: 100%;
    }

    .rc-compact__name {
      font-size: clamp(11px, 3.2cqmin, 13px);
      text-align: center;
    }

    .rc-compact__amount {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 2px;
      font-size: clamp(12px, 3.5cqmin, 14px);
    }

    .rc-compact__amount .rc-icon {
      margin-right: 0;
    }

    .rc-compact__badge {
      font-size: clamp(9px, 2.6cqmin, 11px);
      padding: 2px 6px;
    }

    @supports (width: 1cqw) {
      .rc-compact {
        max-width: min(98%, 90cqw);
      }
    }

    .rc--reserved.rc--multi .rc-multi-list > .rc-compact:first-child,
    .rc--occupied.rc--multi .rc-multi-list > .rc-compact:first-child {
      border-top: none;
    }

    /* CardBody compact：row 与 ProgressBar 之间的 flex:1 占位，在条带布局下会徒增高 */

    .rc.rc--multi .rc-compact > div:nth-child(2) {
      display: none;
    }

    .rc.rc--multi .rc-compact .rc-progress {
      width: 100%;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
    }

    @supports (width: 1cqw) {
      .rc.rc--multi .rc-compact .rc-progress {
        max-width: min(100%, 88cqw);
      }
    }

    .rc-empty-text {
      font-size: clamp(11px, 3.2cqmin, 14px);
      text-align: center;
    }

    .rc-lock-icon svg {
      width: clamp(22px, 7cqmin, 28px);
      height: clamp(22px, 7cqmin, 28px);
    }

    .rc-locked-text {
      font-size: clamp(10px, 3cqmin, 12px);
      text-align: center;
    }

    &[data-theme='compact'] {
      --rc-disc-pad: clamp(5px, 5.5cqmin, 14px);
    }

    &[data-theme='compact'] .rc {
      gap: 4px;
    }

    /* compact：印章略放大，便于「需要付款」等长文案 */

    &[data-theme='compact'] .rc-stamp {
      width: 48px;
      height: 48px;
      right: clamp(34px, 9.5cqmin, 44px);
      bottom: clamp(34px, 9.8cqmin, 44px);
      transform: rotate(-18deg);
    }

    &[data-theme='compact'] .rc-stamp span {
      font-size: 10px;
      line-height: 1.15;
      padding: 0 2px;
    }

    &[data-theme='wide'] {
      --rc-disc-pad: clamp(9px, 7.5cqmin, 20px);
    }

    &[data-theme='wide'] .rc {
      gap: clamp(7px, 2.2cqmin, 12px);
    }

    &[data-theme='wide'] .rc-room-name {
      font-size: clamp(13px, 4.3cqmin, 17px);
    }

    &[data-theme='wide'] .rc-tag {
      font-size: 11px;
      padding: 3px 12px;
    }

    /** 圆桌多条预留：与白底圆盘一致 */
    .rc.rc--reserved.rc--multi {
      background: var(--c-surface);
    }

    .rc--reserved.rc--multi .rc-multi-list > .rc-compact {
      background: transparent;
    }
  }

  /** 图元高度较小时，子级 .rc-body / .rc-multi-list 内可纵向滑动 */
  touch-action: manipulation;
  --c-surface: #ffffff;
  --c-surface-muted: #fafafa;
  --c-border: #e8eaed;
  --c-text-1: #1d2129;
  --c-text-2: #4e5969;
  --c-text-3: #86909c;
  --c-text-4: #c9cdd4;
  --radius-m: 10px;
  --radius-s: 6px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* ============================================================
     RoomCard — Base Styles (Theme: 经典卡片)
     ============================================================ */

  .rc {
    flex: 1;
    min-height: 0;
    position: relative;
    background: var(--c-surface);
    border: none;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-card);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
  }

  .rc:hover {
    box-shadow: var(--shadow-card-hover);
  }

  /** 多预约「查看全部」弹层打开时：桌位选中高亮（内描边，避免被图元首层 overflow 裁掉） */

  .rc.rc--floor-detail-open {
    z-index: 2;
    box-shadow: inset 0 0 0 2px rgba(24, 144, 255, 0.92),
    var(--shadow-card);
  }

  .rc.rc--floor-detail-open:hover {
    box-shadow: inset 0 0 0 2px rgba(24, 144, 255, 0.92),
    var(--shadow-card-hover);
  }

  /* ==================== Header ==================== */

  .rc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
  }

  .rc-header__left {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }

  .rc-room-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rc-capacity {
    font-size: 12px;
    color: var(--c-text-3);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ==================== Status Tag ==================== */

  .rc-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
  }

  .rc-tag--empty {
    background: #f2f3f5;
    color: #8c8c8c;
  }

  .rc-tag--reserved {
    background: #e8f4fd;
    color: #1677b6;
  }

  .rc-tag--occupied {
    background: #e6f7ed;
    color: #13864e;
  }

  .rc-tag--locked {
    background: #f2f3f5;
    color: #b0b0b0;
  }

  /* ==================== Body ==================== */

  .rc-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .rc-body--center {
    align-items: center;
    justify-content: center;
    min-height: 60px;
  }

  /* ==================== Inline Icons ==================== */

  .rc-icon {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    margin-right: 3px;
    display: inline;
  }

  /* ==================== Contact ==================== */

  .rc-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }

  .rc-contact__name {
    font-weight: 500;
    color: var(--c-text-1);
  }

  .rc-contact__phone {
    color: var(--c-text-3);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }

  /* ==================== Time row ==================== */

  .rc-time-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--c-text-2);
    flex-wrap: wrap;
  }

  .rc-sep {
    color: var(--c-text-4);
  }

  /* ==================== Amount row ==================== */

  .rc-amount {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }

  /** 金额图标与数字紧贴；与角标的间距由 .rc-amount--with-badge 的 gap 控制 */
  .rc-amount__main {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .rc-amount__main .rc-icon {
    margin-right: 0;
    flex-shrink: 0;
  }

  .rc-amount--with-badge {
    flex-wrap: wrap;
    gap: 8px;
  }

  .rc-items-count {
    font-size: 12px;
    color: var(--c-text-3);
    font-weight: 500;
    margin-top: -4px;
  }

  /* ==================== Highlights ==================== */

  .rc-highlight--danger {
    color: #d4380d;
    font-weight: 600;
  }

  .rc-highlight--warn {
    color: #e37318;
    font-weight: 600;
  }

  .rc-highlight--info {
    color: #1677b6;
    font-weight: 500;
  }

  .rc-highlight--overtime {
    color: #f5c542;
    font-weight: 600;
  }

  .rc-highlight--paid {
    color: #34c759;
    font-weight: 600;
  }

  .rc-highlight--unpaid {
    // color: #d4380d;
    font-weight: 600;
  }

  /**
   * 预留（未占用）且已付：金额为正文黑/灰阶，付款小块（.rc-compact__badge--paid）保持绿色边框与字色。
   * 避免与占用态整盘深绿底+白字混淆。
   */
  .rc.rc--reserved .rc-amount.rc-highlight--paid,
  .rc.rc--reserved .rc-compact__amount.rc-highlight--paid {
    color: var(--c-text-1);
  }

  /* ==================== Progress Bar ==================== */

  .rc-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .rc-progress__bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    overflow: hidden;
  }

  .rc-progress__fill {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    transition: width 0.6s ease;
  }

  .rc-progress__fill--warn {
    background: #f5c542;
  }

  .rc-progress__label {
    font-size: 11px;
    color: var(--c-text-3);
  }

  .rc-progress--mini {
    gap: 0;
  }

  .rc-progress--mini .rc-progress__bar {
    height: 3px;
  }

  /* ==================== Payment Stamp ==================== */

  .rc-stamp {
    position: absolute;
    right: 6px;
    bottom: 26px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid;
    transform: rotate(-18deg);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
  }

  .rc-stamp span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0 4px;
    text-align: center;
  }

  .rc-stamp--paid {
    border-color: #ffffff;
    color: #ffffff;
  }

  .rc-stamp--unpaid {
    border-color: #d4380d;
    color: #d4380d;
  }

  /* ==================== Next Booking ==================== */

  .rc-next {
    border-top: 1px dashed var(--c-border);
    padding-top: 8px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--c-text-3);
    flex-wrap: wrap;
  }

  .rc-next__label {
    font-size: 10px;
    color: var(--c-text-4);
    letter-spacing: 0.04em;
  }

  .rc-next__sep {
    color: var(--c-text-4);
  }

  /* ==================== Empty / Locked special ==================== */

  .rc--empty {
    background: #ffffff;
  }

  .rc-empty-text {
    font-size: 13px;
    color: var(--c-text-2);
    padding: 0 2px 2px;
  }

  /* demo CARD_CLASS 细分态（原 css 未定义，补视觉区分） */

  .rc--occupied-pay {
    box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.45);
  }

  .rc--occupied-timeout {
    box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.5);
  }

  .rc--locked {
    opacity: 0.5;
    background: repeating-linear-gradient(-45deg,
    var(--c-surface),
    var(--c-surface) 6px,
    var(--c-surface-muted, #f5f5f5) 6px,
    var(--c-surface-muted, #f5f5f5) 12px);
  }

  .rc-lock-icon {
    color: var(--c-text-4);
    margin-bottom: 4px;
  }

  .rc-locked-text {
    font-size: 12px;
    color: var(--c-text-2);
  }

  /* ==================== Occupied background ==================== */

  .rc--occupied {
    background: #17503A;
    color: #ffffff;
  }

  .rc--occupied .rc-room-name {
    color: #ffffff;
  }

  .rc--occupied .rc-capacity {
    color: rgba(255, 255, 255, 0.6);
  }

  .rc--occupied .rc-items-count,
  .rc--occupied .rc-compact__items-count {
    color: rgba(255, 255, 255, 0.8);
  }

  .rc--occupied .rc-compact__items-count--in-scroll {
    color: rgba(255, 255, 255, 0.8);
  }

  .rc--occupied .rc-contact__name {
    color: #ffffff;
  }

  .rc--occupied .rc-contact__phone {
    color: rgba(255, 255, 255, 0.6);
  }

  .rc--occupied .rc-time-row {
    color: rgba(255, 255, 255, 0.8);
  }

  .rc--occupied .rc-sep {
    color: rgba(255, 255, 255, 0.3);
  }

  .rc--occupied .rc-tag--occupied {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
  }

  .rc--occupied .rc-next {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
  }

  .rc--occupied .rc-next__label {
    color: rgba(255, 255, 255, 0.4);
  }

  .rc--occupied .rc-next__sep {
    color: rgba(255, 255, 255, 0.3);
  }

  .rc--occupied .rc-progress__bar {
    background: rgba(255, 255, 255, 0.2);
  }

  .rc--occupied .rc-multi-item {
    background: rgba(255, 255, 255, 0.1);
  }

  .rc--occupied .rc-multi-item__name {
    color: #ffffff;
  }

  .rc--occupied .rc-multi-item__time {
    color: rgba(255, 255, 255, 0.6);
  }

  .rc--occupied .rc-multi-more {
    color: rgba(255, 255, 255, 0.5);
  }

  .rc--occupied .rc-multi-more:hover {
    color: #ffffff;
  }

  /** 多条占用：每条 compact 半透明白底（圆桌/方桌/查看全部弹层一致，优先级高于通用 .rc-compact） */
  .rc--occupied.rc--multi .rc-multi-list > .rc-compact,
  .rc--occupied.rc--multi .rc-multi-modal-body .rc-compact {
    background: rgba(255, 255, 255, 0.08);
  }

  /* 多条预留：与 multi 占用同列表结构，浅色预留肤 + 紧凑行可读深色字 */

  .rc--reserved.rc--multi {
    background: #ffffff;
  }

  /**
   * 多条预留：每条 compact 浅蓝底。用列表容器提高优先级，确保压过下方通用 .rc-compact 白底（圆桌/方桌一致）。
   */
  .rc--reserved.rc--multi .rc-multi-list > .rc-compact,
  .rc--reserved.rc--multi .rc-multi-modal-body .rc-compact {
    background: rgba(22, 119, 182, 0.08);
  }

  .rc--reserved.rc--multi .rc-compact__name {
    color: var(--c-text-1);
  }

  .rc--reserved.rc--multi .rc-compact__scroll {
    color: var(--c-text-2);
  }

  .rc--reserved.rc--multi .rc-compact__amount {
    color: var(--c-text-1);
  }

  .rc--reserved.rc--multi .rc-compact__items-count,
  .rc--reserved.rc--multi .rc-compact__items-count--in-scroll {
    color: var(--c-text-2);
  }

  .rc--reserved.rc--multi .rc-multi-more {
    color: var(--c-text-3);
  }

  .rc--reserved.rc--multi .rc-multi-more:hover {
    color: var(--c-text-1);
  }

  .rc--reserved.rc--multi .rc-progress__bar {
    background: rgba(0, 0, 0, 0.1);
  }

  .rc--reserved.rc--multi .rc-progress__fill {
    background: #1677b6;
  }

  .rc--occupied .rc-amount {
    color: #ffffff;
  }

  /** 已付金额保持白字；徽章/印章单独用绿色 */

  .rc--occupied .rc-amount.rc-highlight--paid,
  .rc--occupied .rc-compact__amount.rc-highlight--paid {
    color: #ffffff;
  }

  /**
   * 占用态下 rc-highlight--paid 仅用于金额容器时由上方白字规则覆盖；
   * 此处仅作用于非金额节点，避免误把金额行染成浅绿。
   */
  .rc--occupied .rc-highlight--paid:not(.rc-amount):not(.rc-compact__amount) {
    color: #7ef5a0;
  }

  .rc--occupied .rc-highlight--unpaid {
    color: #ff8a75;
  }

  .rc--occupied .rc-highlight--overtime {
    color: #f5c542;
  }

  .rc--occupied .rc-highlight--danger {
    color: #ff8a75;
  }

  .rc--occupied .rc-stamp--paid {
    border-color: #34c759;
    color: #7ef5a0;
  }

  /** 占用态行内付款角标（圆桌单条 / 多条 compact）与方桌印章已付绿对齐 */
  .rc--occupied .rc-compact__badge--paid {
    border-color: #34c759;
    color: #7ef5a0;
  }

  .rc--occupied .rc-stamp--unpaid {
    border-color: #ff8a75;
    color: #ff8a75;
  }

  /* ==================== Compact mode (multi-booking items) ==================== */

  .rc-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
  }

  .rc-compact__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 22px;
  }

  .rc-compact__left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 120px;
  }

  .rc-compact__name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rc-compact__phone {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .rc-compact__middle {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }

  .rc-compact__scroll {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    width: fit-content;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
  }

  .rc-compact__scroll--animate {
    animation: pisell-res-frc-marquee 6s ease-in-out infinite alternate;
  }

  .rc-compact__scroll--animate:hover {
    animation-play-state: paused;
  }


  .rc-compact__right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .rc-compact__right-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
  }

  .rc-compact__pay-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .rc-compact__items-count {
    font-size: 10px;
    color: var(--c-text-3);
    font-weight: 500;
    line-height: 1.2;
    text-align: right;
    max-width: 100%;
  }

  .rc-compact__items-count--in-scroll {
    font-size: inherit;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
  }

  .rc-compact__amount {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
  }

  .rc-compact__amount .rc-icon {
    margin-right: 0;
    flex-shrink: 0;
  }

  .rc-compact__badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1.5px solid;
    line-height: 1.35;
    white-space: nowrap;
    letter-spacing: 0.02em;
  }

  .rc-compact__badge--paid {
    border-color: #7ef5a0;
    color: #7ef5a0;
  }

  .rc-compact__badge--unpaid {
    border-color: #ff8a75;
    color: #ff8a75;
  }

  .rc-compact .rc-progress {
    margin-top: -2px;
  }

  .rc-compact .rc-progress__bar {
    height: 3px;
  }

  /* ==================== Multi-booking card ==================== */

  .rc-multi-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 -16px;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  /**
   * 多条卡：Next /「查看全部」与上方 .rc-compact 左右对齐（同 .rc-compact 的 10px 横向 padding）
   * 吸底：列表区有剩余高度时把 Next +「查看全部」压在底部
   */
  .rc-multi-list > .rc-next {
    margin-top: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .rc-multi-list > .rc-multi-more {
    margin-top: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .rc-multi-list > .rc-next ~ .rc-multi-more {
    margin-top: 0;
  }

  .rc-multi-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: min(70vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    margin: 0 -8px;
    padding: 12px 8px 16px;
  }

  .rc-multi-modal-body .rc-compact {
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .rc-multi-modal-body .rc-time-row {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .rc-view-all-modal-title {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.88);
  }

  .rc-multi-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    background: var(--c-surface-muted, #fafafa);
    border-radius: 0;
  }

  .rc-multi-item__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
  }

  .rc-multi-item__name {
    color: var(--c-text-1);
    font-weight: 500;
  }

  .rc-multi-item__time {
    color: var(--c-text-3);
    font-variant-numeric: tabular-nums;
  }

  .rc-multi-more {
    background: none;
    border: none;
    color: var(--c-text-3);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    text-align: center;
    font-family: inherit;
    transition: color 0.15s;
  }

  .rc-multi-more:hover {
    color: var(--c-text-1);
  }

  /* ============================================================
     Theme A — 经典卡片 (Default, already defined above)
     ============================================================ */

  /* ============================================================
     Theme B — 紧凑模式
     ============================================================ */

  &[data-theme="compact"] .rc {
    padding: 8px 10px;
    gap: 6px;
    border-radius: 6px;
  }

  &[data-theme="compact"] .rc-room-name {
    font-size: 13px;
  }

  &[data-theme="compact"] .rc-capacity {
    font-size: 10px;
  }

  &[data-theme="compact"] .rc-tag {
    font-size: 10px;
    padding: 1px 5px;
  }

  &[data-theme="compact"] .rc-contact {
    font-size: 12px;
  }

  &[data-theme="compact"] .rc-contact__phone {
    font-size: 11px;
  }

  &[data-theme="compact"] .rc-time-row {
    font-size: 11px;
  }

  &[data-theme="compact"] .rc-body--center {
    min-height: 40px;
  }

  &[data-theme="compact"] .rc-empty-text {
    font-size: 11px;
  }

  &[data-theme="compact"] .rc-stamp {
    width: 48px;
    height: 48px;
    right: -2px;
    bottom: 4px;
  }

  &[data-theme="compact"] .rc-stamp span {
    font-size: 10px;
    line-height: 1.15;
    padding: 0 2px;
  }

  &[data-theme="compact"] .rc-progress__label {
    font-size: 10px;
  }

  &[data-theme="compact"] .rc-next__title {
    font-size: 9px;
  }

  &[data-theme="compact"] .rc-next__info {
    font-size: 11px;
  }

  &[data-theme="compact"] .rc-multi-item {
    padding: 4px 6px;
  }

  &[data-theme="compact"] .rc-multi-item__info {
    font-size: 11px;
  }

  &[data-theme="compact"] .rc-lock-icon svg {
    width: 20px;
    height: 20px;
  }

  &[data-theme="compact"] .rc-locked-text {
    font-size: 10px;
  }

  /* ============================================================
     Theme C — 宽幅面板
     ============================================================ */

  &[data-theme="wide"] .rc {
    padding: 16px 20px;
    gap: 12px;
    border-radius: 12px;
  }

  &[data-theme="wide"] .rc-header {
    min-height: 28px;
  }

  &[data-theme="wide"] .rc-room-name {
    font-size: 16px;
  }

  &[data-theme="wide"] .rc-capacity {
    font-size: 13px;
  }

  &[data-theme="wide"] .rc-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
  }

  &[data-theme="wide"] .rc-contact {
    font-size: 14px;
    gap: 10px;
  }

  &[data-theme="wide"] .rc-contact__phone {
    font-size: 13px;
  }

  &[data-theme="wide"] .rc-time-row {
    font-size: 13px;
  }

  &[data-theme="wide"] .rc-progress__bar {
    height: 6px;
    border-radius: 3px;
  }

  &[data-theme="wide"] .rc-progress__fill {
    border-radius: 3px;
  }

  &[data-theme="wide"] .rc-progress__label {
    font-size: 12px;
  }

  &[data-theme="wide"] .rc-body--center {
    min-height: 72px;
  }

  &[data-theme="wide"] .rc-empty-text {
    font-size: 14px;
  }

  &[data-theme="wide"] .rc-next {
    padding-top: 10px;
  }

  &[data-theme="wide"] .rc-next__title {
    font-size: 11px;
    margin-bottom: 5px;
  }

  &[data-theme="wide"] .rc-next__info {
    font-size: 13px;
  }

  &[data-theme="wide"] .rc-multi-item {
    padding: 8px 10px;
    gap: 4px;
  }

  &[data-theme="wide"] .rc-multi-item__info {
    font-size: 13px;
  }

  &[data-theme="wide"] .rc-lock-icon svg {
    width: 32px;
    height: 32px;
  }

  &[data-theme="wide"] .rc-locked-text {
    font-size: 13px;
  }

  /**
   * 「查看全部」Modal 内容通过 portal 挂到 body，须自带 .pisell-res-floor-room-card
   * 才能命中其下的 .rc-compact / .rc--* 规则；内层 .rc--* .rc--multi 与画布多条约肤色一致。
   */

  &.pisell-res-floor-room-card--modal-shell {
    width: 100%;
    height: auto;
    /** 固定可视高度，列表在内部滚动，避免日程很多时把整窗撑满屏 */
    max-height: min(70vh, 520px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;

    /** 「查看全部预约」列表：条与条之间间距（仅 Modal 内） */

    .rc-multi-modal-body {
      flex: 1 1 auto;
      min-height: 0;
      max-height: none;
      gap: 12px;
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      touch-action: pan-y;
    }

    .rc--reserved.rc--multi,
    .rc--occupied.rc--multi {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: var(--radius-m);
      padding: 4px 0 0;
    }
  }
}

/** 低代码 Modal 内容区内的房间卡上下留白 */
.pisell-lowcode-modal-body .pisell-res-floor-room-card {
  margin: 0;

  .rc {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/** 平面图多预约「查看全部」Modal：内容区内边距（压过 Pisell PC Modal 默认 `0 24px`） */
.pisell-lowcode-modal-root .pisell-res-floor-view-all-modal-wrap .pisell-lowcode-modal-content .pisell-lowcode-modal-body {
  padding: 24px !important;
  box-sizing: border-box;
}
