/* Mobile density adjustments for the light card theme. */
.calendar-controls { padding: 7px 18px 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.month-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 68px; align-items: center; gap: 4px; flex: 1 1 100%; }
.month-controls button, .segmented button { min-height: 44px; }
.month-controls .month-arrow { border: 0; border-radius: 50%; background: transparent; font-family: Arial, sans-serif; font-size: 26px; font-weight: 300; line-height: 1; padding: 0; }
.month-controls .today { color: var(--brand); border: 1px solid var(--brand-line); border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--surface); }
.month-controls .today:hover { background: var(--brand-soft); }
.month-label { min-width: 0; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.calendar-controls .segmented { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; flex: 1 1 100%; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; overflow: visible; }
.calendar-controls .segmented button { position: relative; border: 0; border-radius: 0; background: transparent; color: #777787; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.calendar-controls .segmented button + button { border-left: 0; }
.calendar-controls .segmented button.active { background: transparent; color: var(--brand); font-weight: 750; }
.calendar-controls .segmented button.active::after { content: ''; position: absolute; left: 26%; right: 26%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }

@media (max-width: 380px) {
  .calendar-controls { padding-left: 14px; padding-right: 14px; }
  .month-controls { grid-template-columns: 40px minmax(0, 1fr) 40px 62px; }
  .month-label { font-size: 15px; }
}
.week-products { display: flex; align-items: center; gap: 6px; overflow: hidden; min-width: 0; }
.week-product { display: flex; align-items: center; gap: 5px; overflow: hidden; max-width: 160px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 4px 7px; font-size: 10px; }
.week-product .thumb { height: 26px; width: 26px; min-width: 26px; object-fit: cover; border: 0; border-radius: 6px; }
.week-product .thumb.placeholder { display: none; }
.week-product-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.muted { color: var(--muted); font-size: 11px; }
.product-subline { display: flex; align-items: center; gap: 6px; margin-top: 4px; min-width: 0; }
.product-subline .publisher { margin: 0; min-width: 0; }
.category-label { flex: 0 0 auto; color: var(--brand); font-size: 9px; border: 1px solid #dcd7f7; background: var(--brand-soft); border-radius: 5px; padding: 1px 5px; font-weight: 700; }
.product-schedule { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-row .heat { padding-top: 2px; }
.product-row .heat small { margin-top: 2px; display: block; letter-spacing: 0; }
.detail .status { margin-top: 9px; }
.detail-meta div { min-height: 56px; display: flex; flex-direction: column; justify-content: center; }
.detail-section .heat { display: block; text-align: left; }
