.schedule-toolbar { justify-content: space-between; }
.schedule-toolbar small { margin-left: auto; }
.schedule-capacity { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.schedule-current { padding: 14px 16px; margin: 14px 0 18px; background: #fff9f2; }
.schedule-current h2 { margin: 0 0 8px; font-size: 14px; }
.schedule-current:has(.muted) { padding: 9px 14px; }
.schedule-current .schedule-card { padding: 12px; background: #fff; }
.schedule-periods { display: grid; gap: 16px; }
.schedule-period { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.schedule-period > header { min-height: 52px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.schedule-period > header h3 { margin: 0; font-size: 17px; }
.schedule-period > header h3 small { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 400; }
.schedule-period .schedule-quick { margin: 12px 14px 6px; padding: 8px 10px; gap: 8px; border-radius: 7px; background: var(--surface-soft); }
.schedule-quick input { height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.schedule-quick .primary { width: 36px; min-height: 36px; padding: 0; }
.schedule-period .schedule-list { padding: 6px 14px 14px; }
.schedule-card { position: relative; padding: 12px 14px; border-left-width: 3px; border-radius: 7px; box-shadow: 0 2px 0 rgba(23,33,29,.04); }
.schedule-card[draggable="true"] { cursor: grab; }
.schedule-card.dragging { opacity: .45; }
.schedule-card h3 { margin: 7px 0 3px; font-size: 15px; line-height: 1.35; }
.schedule-card p, .schedule-card small { margin-top: 4px; font-size: 11px; }
.schedule-card-top { font-size: 10px; }
.schedule-actions { margin-top: 8px; gap: 6px; }
.schedule-actions button { min-height: 30px; padding: 0 9px; font-size: 11px; }
.period-empty { margin: 0; padding: 10px 4px; font-size: 12px; }
.schedule-pending, .schedule-unfinished { margin-top: 16px; padding: 14px 16px; }
.schedule-pending h2, .schedule-unfinished h2 { margin: 0 0 8px; font-size: 14px; }
.schedule-pending > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,auto) auto; gap: 9px; align-items: center; padding: 9px 0; }
.schedule-pending > div span { color: var(--muted); font-size: 11px; }
.schedule-unfinished .schedule-card { margin-top: 10px; }
.schedule-section-title { margin: 18px 0 8px; }
.schedule-section-title h2 { font-size: 18px; }
.schedule-review { margin-top: 18px; }
.schedule-history-layout .schedule-history-list { padding: 0; }
.schedule-history-day .schedule-review-stats { margin: 14px 0; }
.schedule-period:nth-child(2) { border-top: 3px solid #8cb9a0; }
.schedule-period:nth-child(3) { border-top: 3px solid #6f9ec5; }
.schedule-period:nth-child(4) { border-top: 3px solid #d99b5f; }
.schedule-summary-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0; }
.schedule-summary-cards button { display:grid; grid-template-columns:1fr auto; gap:2px 8px; text-align:left; padding:13px 15px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:0 3px 0 rgba(23,33,29,.04); }
.schedule-summary-cards button:hover { border-color:var(--accent); transform:translateY(-1px); }
.schedule-summary-cards span { font-weight:700; font-size:13px; }
.schedule-summary-cards strong { grid-column:2; grid-row:1 / span 2; align-self:center; font-size:24px; color:var(--accent); }
.schedule-summary-cards small { color:var(--muted); font-size:10px; }
.schedule-workspace { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(230px,.75fr) minmax(230px,.75fr); gap:14px; align-items:start; }
.schedule-day-column { min-width:0; }
.schedule-workspace .schedule-pending, .schedule-workspace .schedule-unfinished { margin:0; max-height:650px; overflow:auto; position:sticky; top:12px; }
.schedule-workspace .schedule-unfinished { top:12px; }
.schedule-workspace .schedule-pending > div { grid-template-columns:minmax(0,1fr) auto; }
.schedule-workspace .schedule-pending > div span { grid-column:1; }
.schedule-workspace .schedule-pending > div button { grid-column:2; grid-row:1/3; }
.schedule-ai-badge { display:inline-flex; align-items:center; gap:3px; border:0; border-radius:999px; padding:3px 8px; font-size:10px; color:#286c4b; background:#d9f3e3; }
.schedule-ai-badge.is-running { color:#286c4b; background:#d9f3e3; animation:schedule-pulse 1.8s ease-in-out infinite; }
.schedule-ai-badge.is-running::first-letter { color:#2ca568; }
.schedule-ai-status { display:inline-block; padding:5px 10px; border-radius:999px; background:#edf3e9; color:#65715f; }
.schedule-ai-status.is-running { background:#d9f3e3; color:#286c4b; }
@keyframes schedule-pulse { 50% { box-shadow:0 0 0 4px rgba(44,165,104,.12); } }
.schedule-list.drag-over { outline: 2px dashed var(--accent); outline-offset: -5px; background: rgba(226,244,233,.55); border-radius: 7px; }
.schedule-editor-block { display:grid; gap:8px; }
.sc-editor-label { color:var(--muted); font-size:12px; font-weight:700; }
.sc-choice-group { display:flex; flex-wrap:wrap; gap:8px; }
.sc-choice { min-height:36px; padding:0 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); font-size:13px; cursor:pointer; }
.sc-choice:hover { border-color:var(--accent); }
.sc-choice.active { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-strong); font-weight:700; box-shadow:0 0 0 2px rgba(45,145,90,.09); }
.sc-choice-group.disabled { opacity:.6; pointer-events:none; }
.sc-task-tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sc-task-tools .muted { margin:0; font-size:12px; }
.sc-date-picks { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sc-date-picks > button { min-height:34px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); cursor:pointer; }
.sc-date-picks > button:hover { border-color:var(--accent); }
.sc-date-picks .field { flex:1; min-width:150px; }
.sc-precise-time { border-top:1px solid var(--line); padding-top:9px; }
.sc-precise-time summary { color:var(--muted); cursor:pointer; font-size:12px; }
.sc-precise-time .schedule-time-fields { margin-top:10px; }
.schedule-dialog .schedule-fields > .field { gap:6px; }
.schedule-period .schedule-list { padding-top:0; }
.schedule-period .schedule-card { padding:12px 8px; border:0; border-bottom:1px solid #e9eee9; border-left:0; border-radius:0; background:transparent; box-shadow:none; }
.schedule-period .schedule-card:last-child { border-bottom:0; }
.schedule-row-main { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; }
.schedule-card-copy { min-width:0; }
.schedule-period .schedule-card h3 { margin:0 0 4px; font-size:14px; line-height:1.45; }
.schedule-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-height:17px; color:var(--muted); font-size:11px; line-height:1.35; }
.schedule-title-row { display:flex; align-items:center; gap:6px; min-width:0; }
.schedule-title-row h3 { min-width:0; }
.schedule-ai-toggle { display:inline-grid; place-items:center; flex:0 0 25px; width:25px; height:25px; padding:0; border:0; border-radius:7px; background:transparent; color:#ee8a38; font-size:16px; cursor:pointer; }
.schedule-ai-toggle:hover { background:#fff3e8; transform:scale(1.08); }
.schedule-ai-toggle.is-running { border:1px solid #bfe4ce; background:#effaf3; color:#43855f; font-size:17px; }
.schedule-ai-toggle:disabled { opacity:.55; cursor:wait; }
.schedule-period .schedule-card .schedule-actions { margin:0; flex-wrap:nowrap; }
.schedule-period .schedule-actions button { min-height:32px; border-radius:10px; background:#fff; }
.schedule-period .schedule-actions button[data-sc-action="start"], .schedule-period .schedule-actions button[data-sc-action="pause"], .schedule-period .schedule-actions button[data-sc-action="finish"] { border-color:#e9eee9; font-weight:600; }
.schedule-period .schedule-card .schedule-ai-badge { margin:0; }
.schedule-period .schedule-card .schedule-ai-badge strong { font-variant-numeric:tabular-nums; font-weight:500; }
.schedule-period .schedule-card .timer-display { display:inline-block; margin:0; font-size:13px; }
.schedule-period .schedule-card[draggable="true"]:hover { background:#fbfdfb; }
.schedule-period .schedule-card[draggable="true"]::before { content:"⠿"; float:left; margin:0 7px 0 -3px; color:#a2aea5; font-size:15px; line-height:20px; }
.schedule-period .schedule-card.task-complete { border-radius:7px; background:#f0f8f2; box-shadow:inset 3px 0 #4d9a67; }
.schedule-period .schedule-card.task-complete[draggable="true"] { cursor:default; }
.schedule-period .schedule-card.task-complete[draggable="true"]::before { content:none; }
.schedule-result.done { color:#287746; font-weight:700; }
/* 历史未完成卡片：标题与操作分行，避免操作按钮挤压标题导致逐字竖排 */
.schedule-workspace .schedule-unfinished .schedule-row-main {
  display:block;
}
.schedule-workspace .schedule-unfinished .schedule-card-copy {
  width:100%;
}
.schedule-workspace .schedule-unfinished .schedule-card h3 {
  overflow-wrap:normal;
  word-break:normal;
}
.schedule-workspace .schedule-unfinished .schedule-card-meta {
  width:100%;
}
.schedule-workspace .schedule-unfinished .schedule-actions {
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.schedule-workspace .schedule-unfinished .schedule-actions button {
  flex:0 0 auto;
}
@media (min-width:761px) and (max-width:1100px) {
  .schedule-workspace { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .schedule-day-column { grid-column:1 / -1; }
}
@media (max-width: 760px) {
  .schedule-summary-cards { gap:7px; }
  .schedule-summary-cards button { padding:10px; border-radius:11px; }
  .schedule-summary-cards span { font-size:12px; }
  .schedule-summary-cards strong { font-size:20px; }
  .schedule-summary-cards small { display:none; }
  .schedule-workspace { display:block; }
  .schedule-workspace .schedule-pending, .schedule-workspace .schedule-unfinished { position:static; max-height:none; margin-top:12px; }
  .schedule-toolbar { align-items: flex-start; }
  .schedule-toolbar small { width: 100%; margin: 0; }
  .schedule-period > header { padding: 10px 12px; align-items:flex-start; }
  .schedule-period-actions { gap:5px; }
  .schedule-period-actions button { min-height:31px; padding:0 8px; font-size:11px; }
  .schedule-period .schedule-list { padding: 6px 10px 12px; }
  .schedule-card { padding: 11px 12px; }
  .schedule-actions { gap: 5px; }
  .schedule-actions button { padding: 0 7px; }
  .schedule-pending > div { grid-template-columns: minmax(0,1fr) auto; }
  .schedule-pending > div span { grid-column: 1; }
  .schedule-pending > div button { grid-column: 2; grid-row: 1/3; }
  .schedule-capacity { line-height: 1.5; }
  .schedule-dialog { width:min(560px,calc(100vw - 16px)); }
  .schedule-dialog header { padding:12px 15px; }
  .schedule-fields { gap:13px; padding:15px; }
  .sc-choice { min-height:34px; padding:0 11px; }
  .schedule-row-main { grid-template-columns:minmax(0,1fr); gap:8px; }
  .schedule-period .schedule-card .schedule-actions { justify-content:flex-start; }
  .schedule-period .schedule-actions button { min-height:30px; }
}
