.schedule-head { align-items: flex-start; }
.schedule-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.schedule-main { min-width: 0; overflow: hidden; }
.schedule-weekbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.schedule-range { font-size: 18px; font-weight: 700; }
.week-grid { display: grid; grid-template-columns: 58px repeat(7, minmax(130px, 1fr)); min-width: 970px; }
.schedule-main { overflow-x: auto; }
.time-axis-column { height: 1248px; }
.time-axis-head { height: 64px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafc; }
.time-axis-all-day { height: 32px; padding-top: 8px; color: var(--muted); font-size: 10px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafc; }
.time-axis-body { position: relative; height: 1152px; background: #f8fafc; border-right: 1px solid var(--line); }
.time-label { position: absolute; top: var(--time-top); width: 100%; height: 32px; padding: 3px 5px 0 0; color: var(--muted); font-size: 10px; text-align: right; transform: translateY(-6px); }
.day-column { min-height: 1248px; border-right: 1px solid var(--line); background: #fff; }
.day-column:last-child { border-right: 0; }
.day-column.is-today { background: #f8fbff; }
.day-head { height: 64px; padding: 12px 10px 10px; border-bottom: 1px solid var(--line); cursor: pointer; position: sticky; top: 0; background: inherit; z-index: 3; }
.day-name { color: var(--muted); font-size: 12px; }
.day-number { font-size: 22px; font-weight: 700; line-height: 1.2; }
.day-column.is-today .day-number { color: var(--accent); }
.day-all-day { min-height: 32px; padding: 3px; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.day-timeline { height: 1152px; position: relative; background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--line) 31px, var(--line) 32px); }
.timeline-slots { position: absolute; inset: 0; z-index: 0; }
.timeline-slot { display: block; width: 100%; height: 32px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; }
.timeline-slot:hover { background: rgba(37,99,235,.08); }
.day-empty { color: #94a3b8; font-size: 12px; text-align: center; padding: 24px 4px; }
.schedule-event { position: absolute; top: var(--event-top, 0); height: var(--event-height, 60px); left: 4px; right: 4px; overflow: hidden; border-left: 4px solid var(--event-color, #2563eb); background: #f8fafc; border-radius: 6px; padding: 5px 6px; cursor: grab; box-shadow: 0 1px 2px rgba(15,23,42,.06); z-index: 1; }
.day-all-day .schedule-event { position: relative; top: auto; height: auto; left: auto; right: auto; margin: 0 0 2px; }
.schedule-event:hover { height: auto; min-height: var(--event-height, 0px); overflow: visible; background: #eef6ff; transform: translateY(-1px); z-index: 5; }
.schedule-event { touch-action: none; }
body.schedule-dragging, body.schedule-dragging * { cursor: grabbing !important; user-select: none !important; }
.event-time { color: var(--event-color, #2563eb); font-size: 11px; font-weight: 700; }
.event-title { font-size: 13px; font-weight: 650; line-height: 1.4; word-break: break-word; }
.event-link { color: #64748b; font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-event:hover .event-link { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.todo-list { display: flex; flex-direction: column; gap: 8px; }
.todo-item { border: 1px solid var(--line); border-radius: 7px; padding: 8px; }
.todo-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.todo-time { color: var(--accent); font-size: 11px; margin-top: 3px; }
.schedule-color { width: 34px; height: 28px; padding: 2px; }
@media (max-width: 1000px) {
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .schedule-head { gap: 12px; }
  .schedule-actions { width: 100%; }
  .schedule-actions .btn-accent { margin-left: auto; }
  .schedule-side { display: block; }
  .quick-card { margin-top: 12px; }
}
