/* Editable poster mode. The original JPG fallback stays hidden unless viewer.js enables exact-mode. */
.exact-poster-wrap {
  display: none;
}

.poster-stage.exact-mode .exact-poster-wrap {
  display: flex;
  justify-content: center;
}

.poster-stage.exact-mode .doctor-card,
.poster-stage.exact-mode .schedule-card {
  display: none;
}

.exact-poster {
  display: block;
  max-width: 100%;
  height: auto;
}

.poster-stage.reference-poster-mode .doctor-card {
  display: none;
}

@media (max-width: 900px) {
  .poster-stage.reference-poster-mode {
    position: relative;
    width: min(100%, 563px);
    aspect-ratio: 563 / 1218;
    margin-inline: auto;
    overflow: hidden;
    background-image: var(--poster-image);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
  }

  .poster-stage.reference-poster-mode .schedule-card {
    display: block;
    position: absolute;
    z-index: 3;
    top: 54.55%;
    left: 7.1%;
    width: 85.8%;
    height: 37.4%;
    min-height: 0;
    margin: 0;
    padding: 8.8% 5.3% 4.6%;
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    border-radius: 2.7%;
    background:
      linear-gradient(90deg, #9fcef0 0%, #d8eff9 78%, rgba(255, 255, 255, 0) 100%) top left / 47.6% 6.5% no-repeat,
      #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  }

  .poster-stage.reference-poster-mode .schedule-card::before {
    content: "";
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 47.6%;
    height: 6.5%;
    border-top-left-radius: 15px;
    background: linear-gradient(90deg, #9fcef0 0%, #d8eff9 78%, rgba(255, 255, 255, 0) 100%);
  }

  .poster-stage.reference-poster-mode .card-head {
    align-items: flex-start;
    padding-bottom: 4%;
    margin-bottom: 5%;
    border-bottom: 1px solid #9acdec;
  }

  .poster-stage.reference-poster-mode .card-head h2 {
    font-size: clamp(20px, 5.1vw, 30px);
    line-height: 1.12;
  }

  .poster-stage.reference-poster-mode .card-head p {
    margin-top: 1%;
    font-size: clamp(14px, 3.6vw, 20px);
    line-height: 1.25;
  }

  .poster-stage.reference-poster-mode .legend {
    min-width: 28%;
    padding-top: 0;
  }

  .poster-stage.reference-poster-mode .legend span {
    width: 100%;
    min-height: 0;
    padding: 3% 7%;
    border-radius: 999px;
    font-size: clamp(10px, 2.3vw, 12px);
    line-height: 1.15;
    box-sizing: border-box;
    justify-content: center;
  }

  .poster-stage.reference-poster-mode .legend span:nth-child(n + 3) {
    display: none;
  }

  .poster-stage.reference-poster-mode .week-row {
    margin-bottom: 5%;
    color: #17191d;
    font-size: clamp(16px, 3.8vw, 21px);
    line-height: 1;
  }

  .poster-stage.reference-poster-mode .calendar {
    align-content: start;
    gap: 1% 0;
  }

  .poster-stage.reference-poster-mode .day {
    min-height: clamp(24px, 6.1vw, 34px);
  }

  .poster-stage.reference-poster-mode .pill {
    width: clamp(24px, 5.5vw, 31px);
    min-width: clamp(24px, 5.5vw, 31px);
    height: clamp(24px, 5.5vw, 31px);
    border-radius: 999px;
    font-size: clamp(14px, 3.2vw, 18px);
    font-weight: 800;
  }
}

@media (min-width: 901px) {
  body {
    background: #f4f8fb;
  }

  .topbar {
    min-height: 70px;
    padding: 12px 24px;
  }

  .topbar h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .topbar nav {
    min-width: 520px;
    justify-content: flex-end;
  }

  .topbar nav select {
    max-width: 190px;
  }

  .topbar nav input {
    max-width: 170px;
  }

  .viewer {
    width: min(1180px, calc(100% - 32px));
    margin: 10px auto 28px;
    display: grid;
    grid-template-columns: 300px 563px;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "dashboard poster"
      "directory poster";
    gap: 18px;
    justify-content: center;
    align-items: start;
  }

  .dashboard {
    grid-area: dashboard;
    display: block;
    padding: 14px;
  }

  .dashboard h2 {
    font-size: 20px;
    margin: 2px 0 4px;
  }

  .dashboard p {
    font-size: 13px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .dashboard-stats div {
    min-width: 0;
    padding: 8px 6px;
  }

  .dashboard-stats strong {
    font-size: 20px;
  }

  .dashboard-stats span {
    font-size: 12px;
  }

  .doctor-directory {
    grid-area: directory;
    height: calc(100vh - 236px);
    min-height: 580px;
    overflow: hidden;
    padding: 14px;
  }

  .doctor-directory .section-title {
    margin-bottom: 10px;
  }

  .doctor-directory .section-title h2 {
    font-size: 18px;
  }

  .doctor-directory .section-title p {
    font-size: 13px;
  }

  .doctor-grid {
    height: calc(100% - 58px);
    overflow: auto;
    display: block;
    padding-right: 4px;
  }

  .doctor-store-group + .doctor-store-group {
    margin-top: 14px;
    padding-top: 14px;
  }

  .doctor-store-heading {
    margin-bottom: 8px;
    padding: 6px 7px;
  }

  .doctor-store-heading h3 {
    font-size: 15px;
  }

  .doctor-store-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doctor-tile {
    min-height: 76px;
    grid-template-columns: 48px 1fr;
    padding: 9px;
  }

  .tile-photo {
    width: 48px;
    height: 60px;
  }

  .tile-info strong {
    font-size: 16px;
  }

  .tile-info span,
  .tile-info small {
    font-size: 12px;
  }

  .poster-stage {
    grid-area: poster;
    position: relative;
    --name-x: 38px;
    --name-y: 90px;
    --name-size: 55px;
    --brand-top: 31px;
    --brand-right: 42px;
    --brand-width: 130px;
    --brand-font: 13.5px;
    --brand-letter: 4px;
    --brand-line: 1.25;
    --meta-x: 170px;
    --meta-y: 108px;
    --meta-width: 96px;
    --meta-size: 21px;
    --meta-role-size: 21px;
    --intro-x: 242px;
    --intro-y: 98px;
    --intro-width: 220px;
    --intro-size: 20px;
    --section-y: 195px;
    --section-x: 43px;
    --section-width: 228px;
    --section-font: 12.5px;
    --section-gap: 42px;
    --photo-right: -18px;
    --photo-top: 165px;
    --photo-width: 382px;
    --photo-height: 535px;
    --schedule-top: 664px;
    --schedule-left: 40px;
    --schedule-width: 483px;
    --schedule-height: 456px;
    width: 563px;
    height: 1218px;
    overflow: hidden;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(18, 43, 64, 0.12);
  }

  .poster-stage.reference-poster-mode {
    background: #fff;
  }

  .poster-stage.reference-poster-mode::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--poster-image);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 563px auto;
  }

  .poster-stage.reference-poster-mode .doctor-card {
    display: none;
  }

  .poster-stage.exact-mode {
    display: block;
    background: transparent;
    box-shadow: none;
  }

  .exact-poster-wrap {
    height: 100%;
    overflow: auto;
  }

  .exact-poster {
    width: 563px;
    margin: 0 auto;
  }

  .poster-stage.doctor-zeng-ying {
    --name-size: 55px;
    --meta-x: 170px;
    --intro-x: 242px;
    --intro-width: 220px;
    --photo-right: -18px;
    --photo-top: 165px;
    --photo-width: 382px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-chen-ying {
    --name-size: 55px;
    --meta-x: 170px;
    --intro-x: 242px;
    --intro-width: 220px;
    --photo-right: -28px;
    --photo-top: 170px;
    --photo-width: 392px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-liu-lei {
    --name-size: 55px;
    --meta-x: 170px;
    --intro-x: 242px;
    --intro-width: 220px;
    --photo-right: -28px;
    --photo-top: 170px;
    --photo-width: 392px;
    --photo-height: 532px;
  }

  .poster-stage.doctor-peng-xin {
    --name-size: 55px;
    --meta-x: 170px;
    --intro-x: 242px;
    --intro-width: 235px;
    --intro-size: 18.5px;
    --photo-right: -24px;
    --photo-top: 168px;
    --photo-width: 388px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-dong-jing {
    --name-size: 55px;
    --meta-x: 170px;
    --intro-x: 242px;
    --intro-width: 210px;
    --photo-right: -28px;
    --photo-top: 168px;
    --photo-width: 392px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-hu-yuan {
    --name-size: 55px;
    --meta-x: 170px;
    --intro-x: 242px;
    --intro-width: 220px;
    --photo-right: -10px;
    --photo-top: 166px;
    --photo-width: 372px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-chen-xi {
    --name-size: 55px;
    --meta-x: 170px;
    --intro-x: 242px;
    --intro-width: 220px;
    --photo-right: -24px;
    --photo-top: 168px;
    --photo-width: 388px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-chen-yijie {
    --name-x: 38px;
    --name-y: 88px;
    --name-size: 46px;
    --brand-top: 36px;
    --brand-right: 43px;
    --brand-width: 112px;
    --brand-font: 11px;
    --brand-letter: 3.2px;
    --brand-line: 1.12;
    --meta-x: 216px;
    --meta-y: 100px;
    --meta-width: 92px;
    --meta-size: 15px;
    --meta-role-size: 18px;
    --intro-x: 292px;
    --intro-y: 96px;
    --intro-width: 205px;
    --intro-size: 17px;
    --section-x: 42px;
    --section-y: 195px;
    --section-width: 235px;
    --section-font: 12.5px;
    --section-gap: 58px;
    --photo-right: 8px;
    --photo-top: 168px;
    --photo-width: 368px;
    --photo-height: 590px;
    --schedule-top: 740px;
    --schedule-left: 40px;
    --schedule-width: 483px;
    --schedule-height: 430px;
  }

  .poster-stage.doctor-huang-yuting {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-y: 106px;
    --meta-width: 72px;
    --meta-size: 18px;
    --intro-x: 292px;
    --intro-width: 220px;
    --intro-size: 20px;
    --photo-right: -22px;
    --photo-top: 170px;
    --photo-width: 388px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-yao-xingchen {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 292px;
    --intro-width: 210px;
    --photo-right: -24px;
    --photo-top: 168px;
    --photo-width: 388px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-zhu-yali {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 292px;
    --intro-width: 210px;
    --photo-right: -16px;
    --photo-top: 168px;
    --photo-width: 384px;
    --photo-height: 535px;
  }

  .poster-stage.doctor-song-xiuxu {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 292px;
    --intro-width: 210px;
    --photo-right: -18px;
    --photo-top: 168px;
    --photo-width: 388px;
    --photo-height: 535px;
    --section-gap: 96px;
  }

  .poster-stage.doctor-chen-silin {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 292px;
    --intro-width: 210px;
    --photo-right: -10px;
    --photo-top: 170px;
    --photo-width: 372px;
    --photo-height: 530px;
  }

  .poster-stage.doctor-liang-fumin {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 292px;
    --intro-width: 205px;
    --photo-right: -12px;
    --photo-top: 164px;
    --photo-width: 380px;
    --photo-height: 538px;
    --section-width: 248px;
    --section-font: 11.5px;
    --section-gap: 34px;
  }

  .poster-stage.doctor-xiao-hanyue {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 286px;
    --intro-width: 246px;
    --intro-size: 18.5px;
    --photo-right: -34px;
    --photo-top: 168px;
    --photo-width: 402px;
    --photo-height: 538px;
  }

  .poster-stage.doctor-yin-jianling {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 292px;
    --intro-width: 210px;
    --photo-right: -24px;
    --photo-top: 166px;
    --photo-width: 390px;
    --photo-height: 538px;
  }

  .poster-stage.doctor-liu-shidi {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 286px;
    --intro-width: 246px;
    --intro-size: 18.5px;
    --photo-right: -34px;
    --photo-top: 168px;
    --photo-width: 402px;
    --photo-height: 538px;
  }

  .poster-stage.doctor-zhang-yunqing {
    --name-size: 50px;
    --meta-x: 215px;
    --meta-width: 70px;
    --intro-x: 292px;
    --intro-width: 210px;
    --photo-right: -24px;
    --photo-top: 168px;
    --photo-width: 390px;
    --photo-height: 535px;
  }

  .doctor-card,
  .schedule-card {
    min-width: 0;
    box-shadow: none;
  }

  .doctor-card {
    position: absolute;
    inset: 0 0 auto 0;
    width: 563px;
    height: 690px;
    display: block;
    overflow: visible;
    background: #fff;
    border: 0;
    border-radius: 0;
  }

  .doctor-info {
    position: absolute;
    z-index: 2;
    inset: 0 auto auto 0;
    width: 563px;
    height: 690px;
    padding: 0;
    background: transparent;
  }

  .brand {
    position: absolute;
    top: var(--brand-top);
    right: var(--brand-right);
    width: var(--brand-width);
    white-space: pre-line;
    color: var(--blue);
    text-align: center;
    font-weight: 700;
    letter-spacing: var(--brand-letter);
    line-height: var(--brand-line);
    font-size: var(--brand-font);
  }

  .name-row {
    position: absolute;
    top: var(--name-y);
    left: var(--name-x);
    margin: 0;
    gap: 11px;
    align-items: center;
  }

  .name-row span {
    flex: 0 0 auto;
    width: 5px;
    height: 54px;
    background: var(--blue);
  }

  .name-row h2 {
    font-size: var(--name-size);
    line-height: 1.05;
    white-space: nowrap;
    letter-spacing: 0;
  }

  #doctorMeta {
    position: absolute;
    top: var(--meta-y);
    left: var(--meta-x);
    width: var(--meta-width);
    margin: 0;
    color: #24272d;
    font-size: var(--meta-size);
    line-height: 1.28;
  }

  #doctorMeta span {
    display: block;
  }

  #doctorMeta .meta-role {
    font-size: var(--meta-role-size);
  }

  #doctorIntro {
    position: absolute;
    top: var(--intro-y);
    left: var(--intro-x);
    width: var(--intro-width);
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid #ccd1d7;
    color: #989ea7;
    font-size: var(--intro-size);
    line-height: 1.42;
    white-space: pre-line;
  }

  .sections {
    position: absolute;
    top: var(--section-y);
    left: var(--section-x);
    width: var(--section-width);
    display: block;
    margin: 0;
  }

  .sections section {
    margin: 0 0 var(--section-gap);
  }

  .sections h3 {
    margin: 0 0 17px;
    color: var(--blue);
    font-size: 25px;
    line-height: 1.1;
    font-weight: 800;
  }

  .sections ul {
    margin: 0;
    padding-left: 16px;
    color: #343942;
    font-size: var(--section-font);
    line-height: 1.55;
  }

  .sections li {
    padding-left: 4px;
  }

  .doctor-photo {
    position: absolute;
    z-index: 1;
    right: var(--photo-right);
    top: var(--photo-top);
    width: var(--photo-width);
    height: var(--photo-height);
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .doctor-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: bottom right;
  }

  .schedule-card {
    position: absolute;
    z-index: 3;
    top: var(--schedule-top);
    left: var(--schedule-left);
    width: var(--schedule-width);
    height: var(--schedule-height);
    min-height: 0;
    margin: 0;
    padding: 52px 30px 26px;
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background:
      linear-gradient(90deg, #9fcef0 0%, #d8eff9 78%, rgba(255, 255, 255, 0) 100%) top left / 230px 28px no-repeat,
      #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  }

  .schedule-card::before {
    content: "";
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 230px;
    height: 28px;
    border-top-left-radius: 15px;
    background: linear-gradient(90deg, #9fcef0 0%, #d8eff9 78%, rgba(255, 255, 255, 0) 100%);
  }

  .card-head {
    align-items: flex-start;
    padding-bottom: 19px;
    margin-bottom: 24px;
    border-bottom: 1px solid #9acdec;
  }

  .card-head h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .card-head p {
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.25;
  }

  .legend {
    min-width: 132px;
    padding-top: 0;
  }

  .legend span {
    width: 124px;
    min-height: 22px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.15;
    box-sizing: border-box;
    justify-content: center;
  }

  .legend span:nth-child(n + 3) {
    display: none;
  }

  .week-row {
    margin-bottom: 22px;
    color: #17191d;
    font-size: 21px;
    line-height: 1;
  }

  .calendar {
    align-content: start;
    gap: 4px 0;
  }

  .day {
    min-height: 34px;
  }

  .pill {
    width: 31px;
    min-width: 31px;
    height: 31px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 800;
  }

  .poster-stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: var(--blue);
  }
}

@media (min-width: 901px) and (max-width: 980px) {
  .viewer {
    grid-template-columns: 260px 563px;
    gap: 12px;
  }
}


/*
 * 所有医生统一采用 945×2048 固定资料底图：
 * 上半部分为不可编辑的医生资料图层，下半部分只叠加实时 HTML 排班。
 */
.poster-stage.reference-poster-mode {
  container-type: inline-size;
  position: relative;
  display: block;
  width: min(100%, 945px);
  height: auto;
  aspect-ratio: 945 / 2048;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: #fff !important;
  background-image: var(--poster-image) !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 100% !important;
  box-shadow: none;
}

.poster-stage.reference-poster-mode::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 55.8594%; /* 1144 / 2048 */
  pointer-events: none;
  background-image: var(--fixed-top-image) !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% auto !important;
}

.poster-stage.reference-poster-mode::after {
  display: none !important;
}

.poster-stage.reference-poster-mode .doctor-card {
  display: none !important;
}

.poster-stage.reference-poster-mode .schedule-card {
  position: absolute;
  z-index: 3;
  top: 55.8594%;
  left: 6.3492%;
  width: 76.1905%;
  height: 35.8398%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.poster-stage.reference-poster-mode .schedule-card::before {
  display: none !important;
}

.poster-stage.reference-poster-mode .card-head {
  position: absolute;
  top: 8.4656cqw;
  left: 4.2328cqw;
  width: 66.8783cqw;
  height: 12.1693cqw;
  margin: 0;
  padding: 0 0 3.0688cqw;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.0582cqw;
  box-sizing: border-box;
  border-bottom: 0.2116cqw solid #a9d1e9;
}

.poster-stage.reference-poster-mode .card-head h2 {
  margin: 0;
  color: #171717;
  font-size: 4.4444cqw;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.10cqw;
  white-space: nowrap;
}

.poster-stage.reference-poster-mode .card-head p {
  margin: 0.6349cqw 0 0;
  color: #222;
  font-size: 2.7513cqw;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}

.poster-stage.reference-poster-mode .legend {
  display: grid;
  gap: 0.5291cqw;
  width: 19.0476cqw;
  min-width: 19.0476cqw;
  padding: 0.5291cqw 0 0;
}

.poster-stage.reference-poster-mode .legend span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19.0476cqw;
  min-height: 3.3862cqw;
  padding: 0.4233cqw 1.0582cqw;
  border-radius: 999px;
  box-sizing: border-box;
  color: #fff;
  font-size: 2.1164cqw;
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap;
}

.poster-stage.reference-poster-mode .legend span:first-child {
  color: #171717;
}

.poster-stage.reference-poster-mode .legend span:nth-child(n + 3) {
  display: none;
}

.poster-stage.reference-poster-mode .week-row {
  position: absolute;
  top: 24.4444cqw;
  left: 4.2328cqw;
  width: 66.8783cqw;
  height: 4.2328cqw;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  color: #141414;
  font-size: 2.9630cqw;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.poster-stage.reference-poster-mode .calendar {
  position: absolute;
  top: 32.3810cqw;
  left: 4.2328cqw;
  width: 66.8783cqw;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 5.7143cqw;
  row-gap: 2.3280cqw;
  column-gap: 0;
  align-content: start;
  text-align: center;
}

.poster-stage.reference-poster-mode .day {
  min-height: 0;
  height: 5.7143cqw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-stage.reference-poster-mode .pill {
  width: 5.7143cqw;
  min-width: 5.7143cqw;
  height: 5.7143cqw;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #050505;
  font-size: 3.1746cqw;
  font-weight: 800;
  line-height: 1;
}

.poster-stage.reference-poster-mode .pill.both {
  color: #fff;
}

@media (min-width: 901px) {
  .poster-stage.reference-poster-mode {
    width: 563px;
    height: 1220px;
  }
}

@media (max-width: 900px) {
  .poster-stage.reference-poster-mode {
    width: 100%;
  }
}


/* 六行月份（如 2027 年 8 月）压缩纵向间距，避免最后一排贴住排班框底部。 */
.poster-stage.reference-poster-mode.six-week-month .calendar {
  top: 31.9577cqw;
  grid-auto-rows: 5.2910cqw;
  row-gap: 1.5873cqw;
}

.poster-stage.reference-poster-mode.six-week-month .day {
  height: 5.2910cqw;
}

.poster-stage.reference-poster-mode.six-week-month .pill {
  width: 5.2910cqw;
  min-width: 5.2910cqw;
  height: 5.2910cqw;
  font-size: 2.9630cqw;
}
