/* ============================================================
   calendar.css v2.3 —— 胶囊连珠经期高亮 + 卡片 accordion + 格子矩形化 + 农历双行
   复用 design-system.css 全部变量。
   ============================================================ */

/* ── 面板容器 ── */

.calendar-panel {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  /* 滚动交给 .cal-scroll 内部容器，避免 body{overflow:hidden} 在
     WebView 里干扰 fixed 面板滚动，导致内容高过视口滚不动 */
  overflow: hidden;
}
.cal-scroll {
  flex: 1;
  min-height: 0; /* flex 子项允许收缩，否则不产生滚动 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .calendar-panel {
    right: auto; width: 420px;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
}

/* ── 头部 ── */

.cal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-primary); z-index: 1;
  flex-shrink: 0;
}
.cal-back {
  width: 36px; height: 36px; border: none; background: none;
  font-size: 20px; color: var(--text-primary); cursor: pointer;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cal-back:hover { background: var(--bg-sunken); }
.cal-month-label {
  flex: 1; font-family: var(--font-sans); font-size: var(--text-base);
  font-weight: 600; color: var(--text-primary); text-align: center;
}
.cal-today-btn {
  font-family: var(--font-sans); font-size: var(--text-xs);
  color: var(--accent); background: none;
  border: 1px solid var(--accent); border-radius: var(--radius-full);
  padding: 3px 10px; cursor: pointer; flex-shrink: 0;
}
.cal-today-btn:active { background: var(--accent); color: var(--accent-fg); }

/* ── 月导航 ── */

.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 20px; flex-shrink: 0;
}
.cal-nav button {
  width: 28px; height: 28px; border: none; background: none;
  font-size: 18px; color: var(--text-secondary); cursor: pointer;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
}
.cal-nav button:active { background: var(--bg-sunken); }

/* ── 月视图 Grid ── */

.cal-month-grid { padding: 0 12px 4px; flex-shrink: 0; }

.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.cal-weekday {
  font-family: var(--font-sans); font-size: var(--text-xxs);
  color: var(--text-faint); padding: 2px 0;
  letter-spacing: var(--tracking-wide);
}
.cal-weekday.weekend { color: var(--accent); opacity: 0.6; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

/* 格子：矩形，多行内容 */
.cal-cell {
  min-height: 48px;
  padding: 3px 2px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  position: relative;
  display: flex; flex-direction: column;
  transition: background var(--transition-fast);
  overflow: hidden;
}
@media (min-width: 768px) {
  .cal-cell { min-height: 52px; }
}
.cal-cell:active { background: var(--bg-sunken); }

/* 今天：仅加粗数字 */
.cal-cell.today .cal-cell-num {
  font-weight: 700;
}

/* 选中：橙色底 + 色环 */
.cal-cell.selected {
  background: var(--accent-muted);
  box-shadow: inset 0 0 0 2px var(--accent-ring);
}
.cal-cell.selected .cal-cell-num {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
}

/* 日期数字 */
.cal-cell-num {
  font-family: var(--font-sans); font-size: var(--text-xs);
  color: var(--text-primary);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-bottom: 1px;
}

/* 农历/节日/节气 */
.cal-cell-lunar {
  font-family: var(--font-sans); font-size: 9px;
  color: var(--text-faint);
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}
.cal-cell-lunar.festival,
.cal-cell-lunar.term { color: var(--accent); font-weight: 600; }

/* 待办圆点 */
.cal-cell-dots {
  display: flex; gap: 2px; margin-top: 1px;
  justify-content: center;
}
.cal-dot {
  width: 4px; height: 4px; border-radius: var(--radius-full);
  background: var(--accent);
}
.cal-dot.done { background: var(--text-faint); opacity: 0.4; }

/* 纪念日角标 */
.cal-cell-emoji {
  position: absolute; top: 1px; right: 2px;
  font-size: 8px; z-index: 3; pointer-events: none; line-height: 1;
}

/* ── 经期高亮 —— 胶囊连珠 ── */

/* 前景元素 z-index 提升到 band 之上 */
.cal-cell-num,
.cal-cell-lunar,
.cal-cell-dots {
  position: relative;
  z-index: 2;
}

/* ---- 已记录经期：粉色实心胶囊 (::before) ---- */
.cal-cell.prd-start::before,
.cal-cell.prd-mid::before,
.cal-cell.prd-end::before,
.cal-cell.prd-single::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  left: 0;
  right: 0;
  background: var(--period-bg);
}
.cal-cell.prd-start::before  { border-radius: 50% 0 0 50%; }
.cal-cell.prd-mid::before    { border-radius: 0; }
.cal-cell.prd-end::before    { border-radius: 0 50% 50% 0; }
.cal-cell.prd-single::before { border-radius: 50%; }

/* ---- 排卵期：浅蓝实心胶囊 (::after) ---- */
.cal-cell.prd-ovu-start::after,
.cal-cell.prd-ovu-mid::after,
.cal-cell.prd-ovu-end::after,
.cal-cell.prd-ovu-single::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  left: 0;
  right: 0;
  background: var(--ovulation-bg);
}
.cal-cell.prd-ovu-start::after  { border-radius: 50% 0 0 50%; }
.cal-cell.prd-ovu-mid::after    { border-radius: 0; }
.cal-cell.prd-ovu-end::after    { border-radius: 0 50% 50% 0; }
.cal-cell.prd-ovu-single::after { border-radius: 50%; }

/* ---- 预测经期：粉色虚线环 ---- */
.cal-cell.prd-pred .cal-cell-num {
  outline: 2px dashed var(--predicted-border);
  outline-offset: 2px;
}

/* ---- 今日标记 ---- */
.cal-cell.today .cal-cell-num {
  font-weight: 400;
  outline: 1.5px solid var(--text-primary);
  outline-offset: 1px;
}
/* 当天落在 range 里时线圈变白 */
.cal-cell.today.prd-start .cal-cell-num,
.cal-cell.today.prd-mid .cal-cell-num,
.cal-cell.today.prd-end .cal-cell-num,
.cal-cell.today.prd-single .cal-cell-num,
.cal-cell.today.prd-ovu-start .cal-cell-num,
.cal-cell.today.prd-ovu-mid .cal-cell-num,
.cal-cell.today.prd-ovu-end .cal-cell-num,
.cal-cell.today.prd-ovu-single .cal-cell-num {
  outline-color: rgba(255, 255, 255, 0.55);
}

/* 暗色模式调整 */
@media (prefers-color-scheme: dark) {
  .cal-cell.prd-start::before,
  .cal-cell.prd-mid::before,
  .cal-cell.prd-end::before,
  .cal-cell.prd-single::before {
    background: var(--period-dark-bg);
  }
  .cal-cell.prd-ovu-start::after,
  .cal-cell.prd-ovu-mid::after,
  .cal-cell.prd-ovu-end::after,
  .cal-cell.prd-ovu-single::after {
    background: var(--ovulation-dark-bg);
  }
}

/* ── 经期记录卡片 ── */

.period-card {
  margin: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.period-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.period-card-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.period-card-title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

/* iOS toggle */
.period-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.period-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.period-toggle-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background var(--transition-fast);
}
.period-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
}
.period-toggle-input:checked + .period-toggle-track {
  background: var(--accent);
}
.period-toggle-input:checked + .period-toggle-track::after {
  transform: translateX(18px);
}

/* 展开区 */
.period-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 240ms ease-out,
              padding 240ms ease-out;
  padding: 0 14px;
}
.period-card.expanded .period-card-body {
  max-height: 250px;
  opacity: 1;
  padding: 0 14px 14px;
}

/* 经期区间 / 当天小字 */
.period-card-range {
  padding: 2px 16px 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--accent);
}
.period-day-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin: 8px 0 0;
}

/* 记录字段行 */
.period-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.period-field-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-faint);
  width: 28px;
  flex-shrink: 0;
}

/* 图标选择组 */
.period-icon-group {
  display: flex;
  gap: 14px;
}
.period-icon-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.period-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-sunken);
  color: var(--text-faint);
  transition: background var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast);
}
.period-icon-circle svg {
  width: 16px;
  height: 16px;
}
.period-icon-btn:active .period-icon-circle {
  background: var(--accent-muted);
  color: var(--accent);
}
.period-icon-btn.active .period-icon-circle {
  background: var(--accent);
  color: var(--accent-fg);
  transform: scale(1.08);
}

/* 删除记录入口 */
.period-card-del {
  border: none;
  background: none;
  margin-top: 12px;
  padding: 2px 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-faint);
  cursor: pointer;
}
.period-card-del:hover { color: var(--danger); }

/* ── 纪念日管理 ── */

.cal-ms-toggle {
  font-family: var(--font-sans); font-size: var(--text-xs);
  color: var(--text-faint); cursor: pointer;
  padding: 4px 16px; display: block; text-decoration: none;
}
.cal-ms-toggle:hover { color: var(--accent); }
.cal-ms-list { padding: 0 16px 8px; display: none; }
.cal-ms-list.show { display: block; }
.cal-ms-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; font-family: var(--font-sans);
  font-size: var(--text-sm); color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.cal-ms-item .ms-emoji { font-size: 14px; flex-shrink: 0; }
.cal-ms-item .ms-date { font-size: var(--text-xs); color: var(--text-faint); margin-left: auto; }
.cal-ms-del {
  width: 22px; height: 22px; border: none; background: none;
  font-size: 13px; color: var(--text-faint); cursor: pointer;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
}
.cal-ms-del:active { background: var(--bg-sunken); color: var(--danger); }

.cal-ms-add {
  display: flex; gap: 4px; padding: 6px 0 0;
}
.cal-ms-add input {
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 4px 6px; font-family: var(--font-sans);
  font-size: var(--text-xs); color: var(--text-primary);
  background: var(--bg-surface); outline: none;
}
.cal-ms-add input:focus { border-color: var(--accent-ring); }
.cal-ms-add .ms-title-inp { flex: 1; }
.cal-ms-add .ms-date-inp { width: 56px; }
.cal-ms-add-btn {
  border: none; background: var(--accent); color: var(--accent-fg);
  font-size: 13px; padding: 4px 8px; border-radius: var(--radius-full);
  cursor: pointer; flex-shrink: 0;
}

/* ── 分隔标签 ── */

.cal-section-label {
  font-family: var(--font-sans); font-size: var(--text-xxs);
  font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  padding: 8px 16px 4px; flex-shrink: 0;
}
.cal-section-sub {
  font-family: var(--font-sans); font-size: var(--text-xxs);
  color: var(--text-faint);
  padding: 2px 16px 2px; flex-shrink: 0;
}

/* ── 待办清单 ── */

.cal-todos { padding: 0 16px; }
.cal-todo-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.cal-todo-item:last-child { border-bottom: none; }

.cal-todo-check {
  width: 44px; height: 44px;
  flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
/* 视觉圆环——20px，用 ::before 居中在 44px 容器内 */
.cal-todo-check::before {
  content: "";
  width: 20px; height: 20px;
  border: 2px solid var(--border-strong); border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}
.cal-todo-check.done::before { background: var(--accent); border-color: var(--accent); }
.cal-todo-check.done::after { content: "✓"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--accent-fg); font-size: 11px; }
.cal-todo-body {
  flex: 1; font-family: var(--font-sans); font-size: var(--text-sm);
  color: var(--text-primary); line-height: 1.5; word-break: break-word;
}
.cal-todo-body.done { color: var(--text-faint); text-decoration: line-through; }
.cal-todo-meta {
  display: flex; gap: 4px; margin-top: 1px;
  font-size: var(--text-xxs); color: var(--text-faint); align-items: center;
}
.cal-todo-meta .tag { background: var(--bg-sunken); padding: 1px 4px; border-radius: 2px; }
.cal-todo-del {
  width: 24px; height: 24px; border: none; background: none;
  font-size: 14px; color: var(--text-faint); cursor: pointer;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: 0;
  transition: opacity var(--transition-fast);
}
.cal-todo-item:hover .cal-todo-del,
.cal-todo-item:active .cal-todo-del { opacity: 1; }
.cal-todo-del:active { background: var(--bg-sunken); color: var(--danger); }

/* 超时待办 */
.cal-todo-item.overdue {
  background: rgba(212,115,81,0.08); border-radius: var(--radius-sm);
}
.cal-todo-item.overdue .cal-todo-body { color: var(--danger); }
@media (prefers-color-scheme: dark) {
  .cal-todo-item.overdue { background: rgba(212,115,81,0.12); }
  .cal-todo-item.overdue .cal-todo-body { color: var(--danger); }
}

.cal-todos-empty { text-align: center; padding: 12px 0; font-size: var(--text-sm); color: var(--text-faint); }

/* ── 新增待办 ── */

.cal-add-row {
  display: flex; gap: 6px; padding: 6px 16px 10px;
}
.cal-add-row input.cal-add-input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 8px; font-family: var(--font-sans); font-size: var(--text-sm);
  color: var(--text-primary); background: var(--bg-surface); outline: none;
}
.cal-add-row input:focus { border-color: var(--accent-ring); }
.cal-add-row input::placeholder { color: var(--text-faint); }
.cal-add-time {
  width: 48px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 2px; font-family: var(--font-sans); font-size: var(--text-xs);
  color: var(--text-secondary); background: var(--bg-surface); outline: none;
  flex-shrink: 0;
}
.cal-add-btn {
  width: 32px; height: 32px; border: none;
  background: var(--accent); color: var(--accent-fg);
  font-size: 18px; border-radius: var(--radius-full); cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cal-add-btn:active { background: var(--accent-hover); }

/* ── 近期提醒区 ── */

.cal-reminders { padding: 0 16px 12px; }

.cal-reminder-block { margin-bottom: 8px; }
.cal-reminder-item {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0; font-family: var(--font-sans);
  font-size: var(--text-sm); color: var(--text-primary);
}
.cal-reminder-emoji { font-size: 14px; flex-shrink: 0; }
.cal-reminder-range { font-size: var(--text-xs); color: var(--text-faint); margin-left: auto; flex-shrink: 0; }
.cal-reminder-countdown { font-size: var(--text-xs); color: var(--accent); margin-left: auto; flex-shrink: 0; }

/* ── 旧经期表单（已弃用）── */

/* Calendar audit fixes: accessible controls, explicit actions, narrow layouts. */
.calendar-panel { color: var(--text-primary); }
.calendar-panel *, .calendar-panel *::before, .calendar-panel *::after { box-sizing: border-box; }
.calendar-panel button, .calendar-panel input, .calendar-panel select { font: inherit; }
.calendar-panel button { cursor: pointer; }
.calendar-panel button:disabled { opacity: .55; cursor: wait; }
.calendar-panel button:focus-visible, .calendar-panel input:focus-visible, .calendar-panel select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.cal-header { gap: 3px; padding: 10px 8px; }
.cal-header button { min-width: 40px; min-height: 44px; }
.cal-nav-prev, .cal-nav-next { border: 0; background: transparent; color: var(--text-primary); font-size: 24px !important; }
.cal-month-label { white-space: nowrap; font-size: 15px; }
.cal-today-btn { padding: 4px 7px; }
.cal-scroll { overflow-x: hidden; padding-bottom: max(20px,env(safe-area-inset-bottom)); }
.cal-cell { border: 0; background: transparent; align-items: center; min-width: 0; min-height: 60px; }
.cal-cell-num { font-size: 13px; }
.cal-cell-lunar { font-size: 11px; color: var(--text-secondary); }
.cal-cell-emoji { font-size: 11px; right: 1px; max-width: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell-dots { color: var(--accent); font-size: 8px; line-height: 1; }
.cal-cell.today.selected .cal-cell-num { outline: none; font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 10px 16px; font-size: 11px; color: var(--text-secondary); }
.legend-period { color: var(--accent); }
.legend-ovu { color: #4b829a; }
.cal-status { padding: 8px 16px; font-size: 13px; color: var(--text-primary); background: var(--bg-surface); }
.cal-status:empty { display: none; }
.cal-status button { margin-left: 6px; min-height: 40px; }
.cal-section-label { margin: 0; font-size: 13px; color: var(--text-secondary); letter-spacing: 0; padding-top: 14px; }
.cal-ms-toggle { border: 0; background: transparent; color: var(--text-secondary); min-height: 44px; }
.cal-ms-item { flex-wrap: wrap; overflow-wrap: anywhere; }
.cal-ms-item > span:nth-child(2) { flex: 1; min-width: 50px; }
.cal-ms-item .ms-date { margin-left: 0; }
.cal-row-action { min-width: 40px; min-height: 44px; border: 0; background: transparent; color: var(--text-secondary); padding: 3px; font-size: 12px !important; }
.cal-todo-content { flex: 1; min-width: 0; }
.cal-todo-check { border: 0; padding: 0; background: transparent; }
.cal-todo-item { gap: 4px; align-items: center; }
.cal-todos-empty { color: var(--text-secondary); }
.cal-add-row { align-items: center; }
.cal-add-row input.cal-add-input { min-width: 0; width: 0; min-height: 44px; }
.cal-add-btn { width: 44px; height: 44px; }
.cal-add-options { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0 16px; font-size: 12px; color: var(--text-secondary); }
.cal-add-options label { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.cal-add-time { width: 108px; min-height: 44px; }
.cal-add-target { padding: 5px 16px 10px; color: var(--text-secondary); font-size: 12px; }
.cal-day-milestones { margin: 0 16px; font-size: 13px; overflow-wrap: anywhere; }
.period-card-header { cursor: default; gap: 8px; font-size: 14px; }
.period-card button:not(.period-icon-btn), .cal-editor button, #calMsList > button {
  min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; color: var(--text-primary); background: var(--bg-sunken); font-size: 12px;
}
.period-card-range { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.period-card-details { padding: 0 12px 12px; font-size: 12px; }
.period-field { gap: 8px; }
.period-field-label { color: var(--text-secondary); }
.period-icon-group { gap: 5px; flex-wrap: wrap; }
.period-icon-btn { min-width: 42px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); background: var(--bg-sunken); padding: 4px 8px; }
.period-icon-btn.active { background: var(--accent); color: var(--accent-fg); }
.period-actions { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.period-actions .period-card-del { margin: 0; color: var(--danger); }
.cal-helper { padding: 0 12px 10px; font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.cal-editor { margin: 8px 16px; padding: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.cal-editor[hidden] { display: none; }
.cal-editor h3 { margin: 0 0 10px; font-size: 15px; }
.cal-editor label { display: block; margin: 8px 0; font-size: 13px; color: var(--text-secondary); }
.cal-editor input:not([type=checkbox]), .cal-editor select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 5px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px; background: var(--bg-primary); color: var(--text-primary); }
.cal-editor .cal-helper { padding: 0; }
.cal-form-actions { display: flex; gap: 8px; }
.cal-prediction { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.cal-reminder-item { flex-wrap: wrap; padding: 8px 0; overflow-wrap: anywhere; }
.cal-reminder-item > span:first-child { min-width: 0; flex: 1; }
.cal-reminder-range { font-size: 12px; color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) {
  .calendar-panel *, .calendar-panel *::before, .calendar-panel *::after { transition: none !important; }
}
