/* 明确区分庭期、续封提醒日和到期日；完整字段用于电脑与手机。 */
.hc-page .hc-agenda { margin-bottom: 16px; }
.hc-page .hc-agenda-item { padding: 16px 0; border-top: 1px solid #e5ebf2; }
.hc-page .hc-agenda-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; overflow-wrap: anywhere; }
/* Labels share their natural width, keeping values close and aligned in every card. */
.hc-page .hc-event-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 8px; margin: 14px 0 10px; }
.hc-page .hc-event-details > div { display: contents; }
.hc-page .hc-event-details dt { font-size: 12px; color: #63758b; line-height: 1.6; white-space: nowrap; }
.hc-page .hc-event-details dt::after { content: '：'; }
.hc-page .hc-event-details dd { min-width: 0; margin: 0; font-size: 14px; line-height: 1.6; color: #233a54; font-weight: 500; overflow-wrap: anywhere; }
.hc-page .hc-event-note { font-size: 12px; line-height: 1.7; color: #63758b; overflow-wrap: anywhere; }
.hc-page .hc-unverified { color: #a05b13; }
.hc-page .hc-up-item { align-items: flex-start; padding: 16px 0; }
/* Date blocks describe urgency; the adjacent label continues to identify the event kind. */
.hc-page .hc-up-date.hc-date-urgent{background:#b42332}
.hc-page .hc-up-date.hc-date-soon{background:#a85212}
.hc-page .hc-up-date.hc-date-planned{background:#2463a1}
.hc-page .hc-up-date.hc-date-later{background:#287452}
.hc-page .hc-up-date.hc-date-past,.hc-page .hc-up-date.hc-date-unknown{background:#63758b}
.hc-page .hc-up-title { white-space: normal; overflow-wrap: anywhere; }
.hc-page .hc-up-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.hc-page .hc-up-actions .el-button + .el-button { margin-left: 0; }
.hc-page .hc-up-actions .hc-up-badge { margin-left: auto; }
.hc-page .hc-calendar-wrap{overflow-x:auto}
.hc-page .hc-calendar-wrap .el-calendar{min-width:630px}
.hc-page .hc-calendar-wrap .el-calendar-day{height:auto;min-height:132px}
.hc-page .hc-cell{height:auto;min-height:132px}
.hc-page .hc-cell-summary{display:flex;flex-direction:column;gap:0;align-items:stretch;padding:6px 4px;margin-top:6px;line-height:19px;font-size:11px}
.hc-page .hc-cell-summary>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-page .hc-cell-summary>span:first-child{font-weight:700}

/* 日程历史默认收起，与即将到来共用事件卡片。 */
.hc-side-heading{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap}
.hc-side-heading .hc-side-tip{margin-left:auto}
.hc-expired-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;box-sizing:border-box;padding:0 3px;border:1px solid currentColor;border-radius:50%;font-size:12px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
.hc-side-group-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600;margin:12px 0;color:#315577}
.hc-side-group-title span{font-size:12px;font-weight:400;color:#65788e}
.hc-expired-section{border-bottom:1px solid #d7e2ef;margin-bottom:16px;padding-bottom:8px}
.hc-expired-section .hc-up-list{max-height:680px;overflow-y:auto;scrollbar-gutter:stable}

.hc-schedule-switches{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.hc-schedule-toggle{display:inline-flex;align-items:center;justify-content:center;gap:3px;border:1px solid transparent;border-radius:6px;background:transparent;color:#315577;padding:5px 4px;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.hc-schedule-toggle:hover,.hc-schedule-toggle[aria-pressed="true"]{background:#e7f0fa;border-color:#8bacd0;color:#1e5c98}
.hc-schedule-toggle:focus-visible{outline:2px solid #2867a6;outline-offset:2px}
@media(max-width:1280px){.hc-schedule-toggle{font-size:12px}.hc-schedule-toggle .hc-expired-count{min-width:20px;height:20px;font-size:11px}}

/* Lift visually while preserving the original flow and surrounding positions. */
.hc-page .hc-stat{
  transition:transform 150ms ease,box-shadow 150ms ease,border-color 150ms ease,background-color 150ms ease;
}
.hc-page .hc-stat:focus-visible{
  outline:2px solid #2867a6;outline-offset:3px;transform:translateY(-2px);
  border-color:#a9c6e3;background-color:#f5f9fe;box-shadow:0 5px 14px rgba(29,67,107,.12);z-index:1;
}
.hc-page .hc-up-item,.hc-page .hc-agenda-item{
  position:relative;border-radius:8px;
  transition:transform 150ms ease,box-shadow 150ms ease,background-color 150ms ease;
}
.hc-page .hc-up-item:focus-within,.hc-page .hc-agenda-item:focus-within{
  box-shadow:0 0 0 2px #8db6df;background-color:#f5f9fe;
}
@media(hover:hover) and (pointer:fine){
  .hc-page .hc-stat:hover{
    transform:translateY(-2px);border-color:#a9c6e3;background-color:#f5f9fe;
    box-shadow:0 5px 14px rgba(29,67,107,.12);z-index:1;
  }
  .hc-page .hc-up-item:hover,.hc-page .hc-agenda-item:hover{
    transform:translateY(-2px);box-shadow:0 5px 14px rgba(29,67,107,.12),0 0 0 1px #c7d9ed;
    background-color:#f5f9fe;z-index:1;
  }
}
@media(prefers-reduced-motion:reduce){
  .hc-page .hc-stat{transition:none}
  .hc-page .hc-stat:hover,.hc-page .hc-stat:focus-visible{transform:none}
  .hc-page .hc-up-item,.hc-page .hc-agenda-item{transition:none}
  .hc-page .hc-up-item:hover,.hc-page .hc-agenda-item:hover{transform:none}
}
@media print{
  .hc-page .hc-stat{transform:none!important;box-shadow:none!important;transition:none!important;outline:none!important}
  .hc-page .hc-up-item,.hc-page .hc-agenda-item{transform:none!important;box-shadow:none!important;transition:none!important}
}
.hc-cell-top{gap:4px;flex-wrap:wrap}.hc-cell-lunar{font-size:11px;font-weight:400;line-height:1.5;color:var(--text-secondary);margin-left:auto;white-space:nowrap}.hc-cell-top .hc-tag{flex:none}
